Class: ActiveMocker::MockRelation
- Inherits:
-
Object
- Object
- ActiveMocker::MockRelation
- Defined in:
- lib/active_mocker/mock/mock_relation.rb
Class Method Summary collapse
-
.new(mock, collection) ⇒ ScopeRelation
For the given mock.
Class Method Details
.new(mock, collection) ⇒ ScopeRelation
Returns for the given mock.
6 7 8 |
# File 'lib/active_mocker/mock/mock_relation.rb', line 6 def self.new(mock, collection) mock.send(:__new_relation__, collection) end |