Fixed PDF downloading when venue is not entered

This commit is contained in:
Sagarpreet Chadha 2017-10-01 23:44:48 +05:30
parent 7e9d1dbf84
commit ee9285d243
4 changed files with 4 additions and 3 deletions

1
.byebug_history Normal file
View file

@ -0,0 +1 @@
c

View file

@ -7,7 +7,7 @@ class ApplicationController < ActionController::Base
before_filter :store_location before_filter :store_location
# Ensure every controller authorizes resource or skips authorization (skip_authorization_check) # Ensure every controller authorizes resource or skips authorization (skip_authorization_check)
check_authorization unless: :devise_controller? check_authorization unless: :devise_controller?
def store_location def store_location
# store last url - this is needed for post-login redirect to whatever the user last visited. # store last url - this is needed for post-login redirect to whatever the user last visited.
return unless request.get? return unless request.get?

View file

@ -12,3 +12,4 @@
= f.action :submit, as: :button, label: 'Submit', button_html: { class: 'btn btn-success' } = f.action :submit, as: :button, label: 'Submit', button_html: { class: 'btn btn-success' }
= render partial: 'devise/shared/help' = render partial: 'devise/shared/help'

View file

@ -11,7 +11,7 @@
# #
# It's strongly recommended that you check this file into your version control system. # 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| create_table "ahoy_events", force: :cascade do |t|
t.uuid "visit_id", limit: 16 t.uuid "visit_id", limit: 16
@ -577,7 +577,6 @@ ActiveRecord::Schema.define(version: 20170816203325) do
t.boolean "is_admin", default: false t.boolean "is_admin", default: false
t.string "username" t.string "username"
t.boolean "is_disabled", default: false t.boolean "is_disabled", default: false
t.string "token"
end end
add_index "users", ["confirmation_token"], name: "index_users_on_confirmation_token", unique: true add_index "users", ["confirmation_token"], name: "index_users_on_confirmation_token", unique: true