method

raise_conflict_error

Importance_0
v5.0.0.1 - Show latest stable - 0 notes - Class: Enum
raise_conflict_error(enum_name, method_name, type: 'instance', source: 'Active Record') private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activerecord/lib/active_record/enum.rb, line 224
      def raise_conflict_error(enum_name, method_name, type: 'instance', source: 'Active Record')
        raise ArgumentError, ENUM_CONFLICT_MESSAGE % {
          enum: enum_name,
          klass: self.name,
          type: type,
          method: method_name,
          source: source
        }
      end
Register or log in to add new notes.