instance method match_attribute_method?

Ruby on Rails 2.3.18

Since v2.2.3 Last seen in v2.3.18

Available in: v2.2.3 v2.3.18

Signature

match_attribute_method?(method_name)

Returns MatchData if method_name is an attribute method.

Parameters

method_name req
Source
# File activerecord/lib/active_record/attribute_methods.rb, line 52
      def match_attribute_method?(method_name)
        rebuild_attribute_method_regexp unless defined?(@@attribute_method_regexp) && @@attribute_method_regexp
        @@attribute_method_regexp.match(method_name)
      end

Defined in activerecord/lib/active_record/attribute_methods.rb line 52 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveRecord::AttributeMethods::ClassMethods

Type at least 2 characters to search.

↑↓ navigate · open · esc close