Module: BlindIndex::Extensions::DynamicMatchers
- Defined in:
- lib/blind_index/extensions.rb
Instance Method Summary collapse
Instance Method Details
#blind_index?(name) ⇒ Boolean
53 54 55 |
# File 'lib/blind_index/extensions.rb', line 53 def blind_index?(name) model.respond_to?(:blind_indexes) && model.blind_indexes[name] end |
#valid? ⇒ Boolean
49 50 51 |
# File 'lib/blind_index/extensions.rb', line 49 def valid? attribute_names.all? { |name| model.columns_hash[name] || model.reflect_on_aggregation(name.to_sym) || blind_index?(name.to_sym) } end |