Module: ResourceAwareness::MapperExtensions
- Defined in:
- lib/resource_awareness/mapper_extensions.rb
Instance Method Summary collapse
Instance Method Details
#resource(*entities, &block) ⇒ Object
13 14 15 16 17 |
# File 'lib/resource_awareness/mapper_extensions.rb', line 13 def resource(*entities, &block) super = entities. Rails.application.resource_definitions << Rails::SingletonResource.new(entities.first, @scope, ) if leaf_call?(entities, ) end |