lib/maglev/serialization/serializer.rb
# eager loads a query if the item is going to be be included. Currently this method
# only supports including one relation
eager loads a query if the item is going to be be included. Currently this method
only supports including one relation
eager loads a query if the item is going to be be included . Currently this method only supports including one relation
def includable_query(name, query)
        if includes_param.include?(name) and includable?(name)
          query.includes(name)
        else
          query
        end
      end
def includable_query ( name , query ) if includes_param . include? ( name ) and includable? ( name ) query . includes ( name ) else query end end
eager loads a query if the item is going to be be included.
eager loads a query if the item is going to be be included .
name
<not_specific>
query
<not_specific>