Module: Trestle::Resource::AdapterMethods
- Extended by:
- ActiveSupport::Concern
- Included in:
- Trestle::Resource
- Defined in:
- lib/trestle/resource/adapter_methods.rb
Defined Under Namespace
Modules: ClassMethods
Instance Method Summary collapse
-
#adapter ⇒ Object
Adapter instance bound to the current resource’s context.
Instance Method Details
#adapter ⇒ Object
Adapter instance bound to the current resource’s context.
7 8 9 |
# File 'lib/trestle/resource/adapter_methods.rb', line 7 def adapter @adapter ||= adapter_class.new(self, @context) end |