Method: Effective::Resources::Relation#relation
- Defined in:
- app/models/effective/resources/relation.rb
#relation ⇒ Object
This could be active_model? in which we just return the klass itself here This value ends up being crud_controller resource_scope()
15 16 17 |
# File 'app/models/effective/resources/relation.rb', line 15 def relation @relation ||= (klass.respond_to?(:where) ? klass.where(nil) : klass) end |