Skip to content

Commit 5535a1e

Browse files
committed
Set frozen_string_literal: true in the generated code
1 parent 71f349a commit 5535a1e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/active_resource/schema.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ def attribute(name, type, options = {})
4747
# attr_names.each { |name| attribute(name, 'string', options) }
4848
# end
4949
class_eval <<-EOV, __FILE__, __LINE__ + 1
50+
# frozen_string_literal: true
5051
def #{attr_type}(*args)
5152
options = args.extract_options!
5253
attr_names = args

0 commit comments

Comments
 (0)