Module: Caprese::Serializer::Relationships
- Extended by:
- ActiveSupport::Concern
- Included in:
- Caprese::Serializer
- Defined in:
- lib/caprese/serializer/concerns/relationships.rb
Defined Under Namespace
Modules: ClassMethods
Instance Method Summary collapse
-
#relationship_scope(name, scope) ⇒ Object
Applies further scopes to a singular or collection association when rendered as part of included document.
Instance Method Details
#relationship_scope(name, scope) ⇒ Object
Note:
Can be overridden to customize scoping at a per-relationship level
Applies further scopes to a singular or collection association when rendered as part of included document
25 26 27 |
# File 'lib/caprese/serializer/concerns/relationships.rb', line 25 def relationship_scope(name, scope) scope end |