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

Instance Method Details

#adapterObject

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