File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
lib/generators/rails/templates Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 4
4
<% end -%>
5
5
<% module_namespacing do -%>
6
6
class <%= controller_class_name %>Controller < ApplicationController
7
- before_action :set_<%= singular_table_name %>, only: %w [ show update destroy ]
7
+ before_action :set_<%= singular_table_name %>, only: %i [ show update destroy ]
8
8
9
9
# GET <%= route_url %>
10
10
# GET <%= route_url %>.json
Original file line number Diff line number Diff line change 4
4
<% end -%>
5
5
<% module_namespacing do -%>
6
6
class <%= controller_class_name %>Controller < ApplicationController
7
- before_action :set_<%= singular_table_name %>, only: %w [ show edit update destroy ]
7
+ before_action :set_<%= singular_table_name %>, only: %i [ show edit update destroy ]
8
8
9
9
# GET <%= route_url %>
10
10
# GET <%= route_url %>.json
You can’t perform that action at this time.
0 commit comments