You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
module Draper
module QueryMethods
module LoadStrategy
class ActiveRecordWithKlass
def allowed?(method)
@allowed ||=
::ActiveRecord::Relation::VALUE_METHODS +
[:klass, :reflect_on_association]
@allowed.include? method
end
end
end
end
end
It tries to decorate nil class in lib/draper/query_methods.rb:7
because
`scope`.reflect_on_association
is returning nil
It should return the value as is
The text was updated successfully, but these errors were encountered:
I create a custom load strategy
It tries to decorate nil class in
lib/draper/query_methods.rb:7
because
is returning nil
It should return the value as is
The text was updated successfully, but these errors were encountered: