Method: NinjaModel::Base.build_finder_relation
- Defined in:
- lib/ninja_model/base.rb
.build_finder_relation(options = {}, scope = nil) ⇒ Object
72 73 74 75 76 |
# File 'lib/ninja_model/base.rb', line 72 def build_finder_relation( = {}, scope = nil) relation = .is_a?(Hash) ? unscoped.() : relation = scope.merge(relation) if scope relation end |