recipes/devise.rb in rails_apps_composer-1.4.6 vs recipes/devise.rb in rails_apps_composer-1.4.7
- old
+ new
@@ -54,10 +54,10 @@
end
if config['authorization']
inject_into_file 'app/controllers/application_controller.rb', :before => 'end' do <<-RUBY
rescue_from CanCan::AccessDenied do |exception|
- redirect_to root_path, :error => exception.message
+ redirect_to root_path, :alert => exception.message
end
RUBY
end
end