Module: SmartAdapters
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/smart_adapters.rb,
lib/smart_adapters/railtie.rb,
lib/smart_adapters/version.rb,
lib/smart_adapters/delegator.rb,
lib/smart_adapters/util/adapters/base.rb,
lib/smart_adapters/concerns/smart_adapters.rb,
lib/smart_adapters/util/adapters/js/default.rb,
lib/smart_adapters/util/adapters/csv/default.rb,
lib/smart_adapters/util/adapters/xml/default.rb,
lib/smart_adapters/util/adapters/html/default.rb,
lib/smart_adapters/util/adapters/json/default.rb,
lib/smart_adapters/util/adapters/text/default.rb,
lib/smart_adapters/exceptions/invalid_adapter_exception.rb,
lib/smart_adapters/exceptions/invalid_request_format_exception.rb,
lib/smart_adapters/exceptions/invalid_request_params_exception.rb
Defined Under Namespace
Modules: Exceptions, Util Classes: Delegator, Railtie
Constant Summary collapse
- VERSION =
'0.1.6'
Instance Method Summary collapse
-
#current_adapter ⇒ SmartAdapters::<Controller>::<Action>::<Format>Adapter
Load request adapter.
-
#current_delegator ⇒ SmartAdapters::Delegator
Load request adapter.
Instance Method Details
#current_adapter ⇒ SmartAdapters::<Controller>::<Action>::<Format>Adapter
Load request adapter
8 9 10 |
# File 'lib/smart_adapters/concerns/smart_adapters.rb', line 8 def current_adapter @current_adapter ||= current_delegator.load end |
#current_delegator ⇒ SmartAdapters::Delegator
Load request adapter
14 15 16 |
# File 'lib/smart_adapters/concerns/smart_adapters.rb', line 14 def current_delegator @current_delegator ||= ::SmartAdapters::Delegator.new(self, request) end |