Skip to content

Commit 4a338b5

Browse files
committed
Cleanup hash rockets
1 parent d78c6b4 commit 4a338b5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/datagrid/scaffold.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ class Datagrid::Scaffold < Rails::Generators::NamedBase
44

55
include Rails::Generators::ResourceHelpers
66

7-
check_class_collision :suffix => "Grid"
7+
check_class_collision suffix: "Grid"
88
source_root File.expand_path(__FILE__ + "/../../../templates")
99

1010
def create_scaffold
@@ -13,7 +13,7 @@ def create_scaffold
1313
end
1414
template "grid.rb.erb", "app/grids/#{grid_class_name.underscore}.rb"
1515
if file_exists?(grid_controller_file)
16-
inject_into_file grid_controller_file, index_action, :after => %r{class .*#{grid_controller_class_name}.*\n}
16+
inject_into_file grid_controller_file, index_action, after: %r{class .*#{grid_controller_class_name}.*\n}
1717
else
1818
template "controller.rb.erb", grid_controller_file
1919
end
@@ -30,7 +30,7 @@ def create_scaffold
3030
}.each do |extension, string|
3131
file = "app/assets/stylesheets/application.#{extension}"
3232
if file_exists?(file)
33-
inject_into_file file, string + "\n", {:before => %r{.*require_self}} # before all
33+
inject_into_file file, string + "\n", {before: %r{.*require_self}} # before all
3434
end
3535
end
3636
end

0 commit comments

Comments
 (0)