class method
self.attr_internal_naming_format=
Ruby on Rails 8.1.2
Since v7.2.3Signature
self.attr_internal_naming_format=(format)
No documentation comment.
Parameters
-
formatreq
Source
# File activesupport/lib/active_support/core_ext/module/attr_internal.rb, line 25
def attr_internal_naming_format=(format)
if format.start_with?("@")
raise ArgumentError, <<~MESSAGE.squish
Setting `attr_internal_naming_format` with a `@` prefix is not supported.
You can simply replace #{format.inspect} by #{format.delete_prefix("@").inspect}.
MESSAGE
end
@attr_internal_naming_format = format
end
Defined in activesupport/lib/active_support/core_ext/module/attr_internal.rb line 25
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Module