From ee9285d243a8959c43c7e6e6bad78e18fdd99ed3 Mon Sep 17 00:00:00 2001 From: Sagarpreet Chadha Date: Sun, 1 Oct 2017 23:44:48 +0530 Subject: [PATCH] Fixed PDF downloading when venue is not entered --- .byebug_history | 1 + app/controllers/application_controller.rb | 2 +- app/views/devise/confirmations/new.html.haml | 1 + db/schema.rb | 3 +-- 4 files changed, 4 insertions(+), 3 deletions(-) create mode 100644 .byebug_history diff --git a/.byebug_history b/.byebug_history new file mode 100644 index 00000000..f2ad6c76 --- /dev/null +++ b/.byebug_history @@ -0,0 +1 @@ +c diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index f1a31894..31748b54 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -7,7 +7,7 @@ class ApplicationController < ActionController::Base before_filter :store_location # Ensure every controller authorizes resource or skips authorization (skip_authorization_check) check_authorization unless: :devise_controller? - + def store_location # store last url - this is needed for post-login redirect to whatever the user last visited. return unless request.get? diff --git a/app/views/devise/confirmations/new.html.haml b/app/views/devise/confirmations/new.html.haml index 8df4efc1..0a2d3de7 100644 --- a/app/views/devise/confirmations/new.html.haml +++ b/app/views/devise/confirmations/new.html.haml @@ -12,3 +12,4 @@ = f.action :submit, as: :button, label: 'Submit', button_html: { class: 'btn btn-success' } = render partial: 'devise/shared/help' + \ No newline at end of file diff --git a/db/schema.rb b/db/schema.rb index 82f5923d..fbdc1202 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -11,7 +11,7 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema.define(version: 20170816203325) do +ActiveRecord::Schema.define(version: 20170814174637) do create_table "ahoy_events", force: :cascade do |t| t.uuid "visit_id", limit: 16 @@ -577,7 +577,6 @@ ActiveRecord::Schema.define(version: 20170816203325) do t.boolean "is_admin", default: false t.string "username" t.boolean "is_disabled", default: false - t.string "token" end add_index "users", ["confirmation_token"], name: "index_users_on_confirmation_token", unique: true