Skip to content

Commit a0c1f95

Browse files
authored
Merge pull request #336 from Shopify/frozen-string-literals
Set frozen_string_literal: true in the generated code
2 parents 20d1b98 + 5535a1e commit a0c1f95

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)