Skip to content

Commit

Permalink
Merge pull request activeadmin#440 from mjroghelia/devise_generator_fix
Browse files Browse the repository at this point in the history
Updated DeviseGenerator to respect singular tables.
  • Loading branch information
gregbell committed Sep 6, 2011
2 parents c68335d + b8d91cd commit ced15f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/generators/active_admin/devise/devise_generator.rb
Expand Up @@ -31,7 +31,7 @@ def remove_registerable_from_model

def set_namespace_for_path
routes_file = File.join(destination_root, "config", "routes.rb")
gsub_file routes_file, /devise_for :#{table_name}/, "devise_for :#{table_name}, ActiveAdmin::Devise.config"
gsub_file routes_file, /devise_for :#{plural_table_name}/, "devise_for :#{plural_table_name}, ActiveAdmin::Devise.config"
end

def add_default_user_to_migration
Expand Down

0 comments on commit ced15f1

Please sign in to comment.