class method self.attr_internal_naming_format=

Ruby on Rails edge

Since v7.2.3.2

Available in: v7.2.3.2 v8.0.5.1 v8.1.3.1 edge

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 26
    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 26 · View on GitHub · Improve this page · Find usages on GitHub

Defined in Module

Type at least 2 characters to search.

Use the arrow keys to navigate results, Enter to open one, Escape to close.

Keyboard shortcuts

/
Focus search
⌘K / Ctrl-K
Command palette
?
This help
Esc
Close