Module: Hoodoo::ActiveRecord::Translated::ClassMethods
- Defined in:
- lib/hoodoo/active/active_record/translated.rb
Overview
Collection of class methods that get defined on an including class via Hoodoo::ActiveRecord::Translated::included.
Instance Method Summary collapse
-
#translated(context) ⇒ Object
TODO: Placeholder.
Instance Method Details
#translated(context) ⇒ Object
TODO: Placeholder.
context
-
Hoodoo::Services::Context instance describing a call context. This is typically a value passed to one of the Hoodoo::Services::Implementation instance methods that a resource subclass implements.
70 71 72 73 |
# File 'lib/hoodoo/active/active_record/translated.rb', line 70 def translated( context ) prevailing_scope = all() # "Model.all" -> returns anonymous scope return prevailing_scope end |