Module: Yaks::Behaviour::OptionalIncludes

Defined in:
lib/yaks/behaviour/optional_includes.rb

Constant Summary collapse

RACK_KEY =
"yaks.optional_includes".freeze

Instance Method Summary collapse

Instance Method Details

#associationsObject



8
9
10
11
12
# File 'lib/yaks/behaviour/optional_includes.rb', line 8

def associations
  super.select do |association|
    association.if != Undefined || include_association?(association)
  end
end