Skip to content

Commit

Permalink
fix edge rails's deprecation message
Browse files Browse the repository at this point in the history
  • Loading branch information
Konstantin Shabanov authored and josevalim committed Dec 29, 2010
1 parent 3e99f6e commit 8525d00
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/inherited_resources.rb
Original file line number Diff line number Diff line change
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 8525d00

Please sign in to comment.