From 85f4c4a518182443992157def8ecc4538dac41ef Mon Sep 17 00:00:00 2001 From: James Miller Date: Fri, 20 Feb 2009 07:35:11 -0800 Subject: [PATCH] Make nifty_authentication compatible with Rails 2.3 (currently not backward compatible) --- .../nifty_authentication/nifty_authentication_generator.rb | 2 +- test/test_nifty_authentication_generator.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/rails_generators/nifty_authentication/nifty_authentication_generator.rb b/rails_generators/nifty_authentication/nifty_authentication_generator.rb index b68ec80..d5c348e 100644 --- a/rails_generators/nifty_authentication/nifty_authentication_generator.rb +++ b/rails_generators/nifty_authentication/nifty_authentication_generator.rb @@ -37,7 +37,7 @@ def manifest m.route_name :logout, 'logout', :controller => sessions_underscore_name, :action => 'destroy' m.route_name :signup, 'signup', :controller => user_plural_name, :action => 'new' - m.insert_into 'app/controllers/application.rb', 'include Authentication' + m.insert_into 'app/controllers/application_controller.rb', 'include Authentication' if test_framework == :rspec m.directory "spec" diff --git a/test/test_nifty_authentication_generator.rb b/test/test_nifty_authentication_generator.rb index d4c25bb..6f497fc 100644 --- a/test/test_nifty_authentication_generator.rb +++ b/test/test_nifty_authentication_generator.rb @@ -64,7 +64,7 @@ class TestNiftyAuthenticationGenerator < Test::Unit::TestCase end should "include Authentication" do - assert_generated_file "app/controllers/application.rb" do |body| + assert_generated_file "app/controllers/application_controller.rb" do |body| assert_match "include Authentication", body end end