method

valid?

rails latest stable - Class: ActiveRecord::DynamicMatchers::Method

Method not available on this version

This method is only available on newer versions. The first available version (v8.1.1) is shown here.

valid?(model, name)
public

No documentation available.

# File activerecord/lib/active_record/dynamic_matchers.rb, line 34
          def valid?(model, name)
            attribute_names(model, name.to_s).all? { |name| model.columns_hash[name] || model.reflect_on_aggregation(name.to_sym) }
          end