Method: MotionRecord::Scope#initialize
- Defined in:
- lib/motion_record/scope.rb
#initialize(klass, options = {}) ⇒ Scope
Returns a new instance of Scope.
10 11 12 13 14 15 |
# File 'lib/motion_record/scope.rb', line 10 def initialize(klass, = {}) @klass = klass @conditions = [:conditions] || {} # TODO: freeze? @order = [:order] @limit = [:limit] end |