diff options
author | Pavel Pravosud <pavel@pravosud.com> | 2013-01-11 10:20:43 +0700 |
---|---|---|
committer | Pavel Pravosud <pavel@pravosud.com> | 2013-01-11 10:20:43 +0700 |
commit | d643cbe7f8b85db222feed4be14821cfe338cc6c (patch) | |
tree | 455a04cc71a7b55c5ebbfda3ae38e2a2c4768517 /railties/lib | |
parent | 8c2e4b664e1dfabe2e892c75f5b6038f86eab982 (diff) | |
download | rails-d643cbe7f8b85db222feed4be14821cfe338cc6c.tar.gz rails-d643cbe7f8b85db222feed4be14821cfe338cc6c.tar.bz2 rails-d643cbe7f8b85db222feed4be14821cfe338cc6c.zip |
Changed if ! to unless
Diffstat (limited to 'railties/lib')
-rw-r--r-- | railties/lib/rails/generators/rails/scaffold/scaffold_generator.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/rails/generators/rails/scaffold/scaffold_generator.rb b/railties/lib/rails/generators/rails/scaffold/scaffold_generator.rb index 9a7ea1f657..36589d65e2 100644 --- a/railties/lib/rails/generators/rails/scaffold/scaffold_generator.rb +++ b/railties/lib/rails/generators/rails/scaffold/scaffold_generator.rb @@ -10,7 +10,7 @@ module Rails class_option :stylesheet_engine, desc: "Engine for Stylesheets" def handle_skip - @options = @options.merge(stylesheet_engine: false) if !options[:stylesheets] + @options = @options.merge(stylesheet_engine: false) unless options[:stylesheets] end hook_for :scaffold_controller, required: true |