Skip to content

Commit

Permalink
Merge git://github.com/josevalim/inherited_resources
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmitry Lihachev committed Jan 18, 2011
2 parents eb7af82 + 8525d00 commit 89bfe61
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/inherited_resources.rb
Expand Up @@ -22,7 +22,11 @@ def self.flash_keys=(array)

class Railtie < ::Rails::Railtie
config.inherited_resources = InheritedResources
config.generators.scaffold_controller = :inherited_resources_controller
if config.respond_to?(:app_generators)
config.app_generators.scaffold_controller = :inherited_resources_controller
else
config.generators.scaffold_controller = :inherited_resources_controller
end
end
end

Expand Down

0 comments on commit 89bfe61

Please sign in to comment.