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

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.



72
73
74
75
# File 'lib/hoodoo/active/active_record/translated.rb', line 72

def translated( context )
  prevailing_scope = all() # "Model.all" -> returns anonymous scope
  return prevailing_scope
end