Skip to content

Commit 4432257

Browse files
authored
Merge pull request #2008 from kirs/patch-2
Fix warning on Thor
2 parents b1495a1 + 96f6be9 commit 4432257

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/active_model/serializer/generators/serializer/scaffold_controller_generator.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ class ScaffoldControllerGenerator
77
if Rails::VERSION::MAJOR >= 4
88
source_root File.expand_path('../templates', __FILE__)
99

10-
hook_for :serializer, default: true
10+
hook_for :serializer, default: true, type: :boolean
1111
end
1212
end
1313
end

0 commit comments

Comments
 (0)