diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2012-12-09 13:57:56 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2012-12-09 13:57:56 -0300 |
commit | 6897a83f4eeabaef77feabd5f5fe69d283a0cb72 (patch) | |
tree | 7aafa660a8bfa1582cc78a5e9a6d9e1f125cdf68 /railties | |
parent | 2d6b406549a463a4944eb4790e9347c5b9b331e8 (diff) | |
download | rails-6897a83f4eeabaef77feabd5f5fe69d283a0cb72.tar.gz rails-6897a83f4eeabaef77feabd5f5fe69d283a0cb72.tar.bz2 rails-6897a83f4eeabaef77feabd5f5fe69d283a0cb72.zip |
Remove the spaces after the open bracket and before the close bracket.
All our generated code follow this rule
Diffstat (limited to 'railties')
-rw-r--r-- | railties/lib/rails/generators/rails/scaffold_controller/templates/controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/rails/generators/rails/scaffold_controller/templates/controller.rb b/railties/lib/rails/generators/rails/scaffold_controller/templates/controller.rb index 24d97db407..08fe8a08e3 100644 --- a/railties/lib/rails/generators/rails/scaffold_controller/templates/controller.rb +++ b/railties/lib/rails/generators/rails/scaffold_controller/templates/controller.rb @@ -4,7 +4,7 @@ require_dependency "<%= namespaced_file_path %>/application_controller" <% end -%> <% module_namespacing do -%> class <%= controller_class_name %>Controller < ApplicationController - before_action :set_<%= singular_table_name %>, only: [ :show, :edit, :update, :destroy ] + before_action :set_<%= singular_table_name %>, only: [:show, :edit, :update, :destroy] # GET <%= route_url %> # GET <%= route_url %>.json |