Flowdock
method

assert_valid_value

Importance_0
v5.2.3 - Show latest stable - 0 notes - Class: EnumType
assert_valid_value(value) public

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 138
      def assert_valid_value(value)
        unless value.blank? || mapping.has_key?(value) || mapping.has_value?(value)
          raise ArgumentError, "'#{value}' is not a valid #{name}"
        end
      end
Register or log in to add new notes.