Skip to content

Commit

Permalink
Make nifty_authentication compatible with Rails 2.3 (currently not ba…
Browse files Browse the repository at this point in the history
…ckward compatible)
  • Loading branch information
James Miller committed Feb 20, 2009
1 parent 0ed9f88 commit 85f4c4a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion test/test_nifty_authentication_generator.rb
Expand Up @@ -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
Expand Down

0 comments on commit 85f4c4a

Please sign in to comment.