forked from bofh/fetsite
redirect after sign in
This commit is contained in:
@@ -13,6 +13,15 @@
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def after_sign_in_path_for(resource)
|
||||||
|
sign_in_url = new_user_session_path(:only_path => false, :protocol => 'http')
|
||||||
|
if request.referer == sign_in_url
|
||||||
|
super
|
||||||
|
else
|
||||||
|
stored_location_for(resource) || request.referer || root_path
|
||||||
|
end
|
||||||
|
end^
|
||||||
def get_theme
|
def get_theme
|
||||||
if ThemesForRails.available_theme_names.include?(params[:theme])
|
if ThemesForRails.available_theme_names.include?(params[:theme])
|
||||||
params[:theme]
|
params[:theme]
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
class AddIdToThemen < ActiveRecord::Migration
|
class AddIdToThemen < ActiveRecord::Migration
|
||||||
def change
|
def change
|
||||||
add_column :themen, :themengruppe_id, :integer
|
add_column :themen, :themengruppe_id, :integer
|
||||||
add_column :attachments, :thema_id, :integer
|
add_column :attachments, :thema_id, :integer
|
||||||
add_column :fragen, :thema_id, :integer
|
add_column :fragen, :thema_id, :integer
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user