Method: ActiveRecord::Reflection::AssociationReflection#scope_chain
- Defined in:
- lib/ocean-dynamo/active_record_stuff/reflection.rb
#scope_chain ⇒ Object
An array of arrays of scopes. Each item in the outside array corresponds to a reflection in the #chain.
285 286 287 |
# File 'lib/ocean-dynamo/active_record_stuff/reflection.rb', line 285 def scope_chain scope ? [[scope]] : [[]] end |