method

include?

Importance_0
include?(record, value) private

No documentation

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

Hide source
# File activemodel/lib/active_model/validations/clusivity.rb, line 21
      def include?(record, value)
        members = resolve_value(record, delimiter)

        if value.is_a?(Array)
          value.all? { |v| members.public_send(inclusion_method(members), v) }
        else
          members.public_send(inclusion_method(members), value)
        end
      end
Register or log in to add new notes.