Module: Evvnt::NestedResources
- Included in:
- Base
- Defined in:
- lib/evvnt/nested_resources.rb
Overview
Internal: Adds behaviour to Base for handling nested resources
Examples
class Thing < Evvnt::Base
belongs_to :user
end
# Will find a Thing at "/users/456/things/123.json"
@thing = Thing.find("123", user_id: "456")