class method self.attr_internal_naming_format=

Ruby on Rails 7.2.3

Since v7.2.3

Available in: v7.2.3 v8.0.4 v8.1.2

Signature

self.attr_internal_naming_format=(format)

No documentation comment.

Parameters

format req
Source
# File activesupport/lib/active_support/core_ext/module/attr_internal.rb, line 25
    def attr_internal_naming_format=(format)
      if format.start_with?("@")
        ActiveSupport.deprecator.warn <<~MESSAGE
          Setting `attr_internal_naming_format` with a `@` prefix is deprecated and will be removed in Rails 8.0.

          You can simply replace #{format.inspect} by #{format.delete_prefix("@").inspect}.
        MESSAGE

        format = format.delete_prefix("@")
      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

Type at least 2 characters to search.

↑↓ navigate · open · esc close