diff options
author | José Valim <jose.valim@gmail.com> | 2009-07-03 12:10:09 +0200 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2009-07-03 14:57:46 +0200 |
commit | d1c404ee90ea7470d662517aa7a2d312a61c8c61 (patch) | |
tree | 5ba308e204ff3d5d3929324e55f18ff2c057504d /railties/lib/generators/rails/resource | |
parent | 3bf45890b323d0fbb5dbfa3e3a2e8f85c627679a (diff) | |
download | rails-d1c404ee90ea7470d662517aa7a2d312a61c8c61.tar.gz rails-d1c404ee90ea7470d662517aa7a2d312a61c8c61.tar.bz2 rails-d1c404ee90ea7470d662517aa7a2d312a61c8c61.zip |
Added lookup to generators.
Diffstat (limited to 'railties/lib/generators/rails/resource')
-rw-r--r-- | railties/lib/generators/rails/resource/resource_generator.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/generators/rails/resource/resource_generator.rb b/railties/lib/generators/rails/resource/resource_generator.rb index 8ff6d820f2..70babc0550 100644 --- a/railties/lib/generators/rails/resource/resource_generator.rb +++ b/railties/lib/generators/rails/resource/resource_generator.rb @@ -7,7 +7,7 @@ module Rails base.invoke controller, [ base.name.pluralize, base.options[:actions] ] end - class_option :actions, :type => :array, :banner => "ACTION ACTION", + class_option :actions, :type => :array, :banner => "ACTION ACTION", :default => [], :desc => "Actions for the resource controller" class_option :singleton, :type => :boolean, :desc => "Supply to create a singleton controller" |