Class: Draper::QueryMethods::LoadStrategy::ActiveRecord

Inherits:
Object
  • Object
show all
Defined in:
lib/draper/query_methods/load_strategy.rb

Instance Method Summary collapse

Instance Method Details

#allowed?(method) ⇒ Boolean

Returns:

  • (Boolean)


9
10
11
# File 'lib/draper/query_methods/load_strategy.rb', line 9

def allowed?(method)
  ::ActiveRecord::Relation::VALUE_METHODS.include? method
end