Module: ApiAuth::Rails::ActiveResourceExtension::ActiveResourceApiAuth
- Defined in:
- lib/api_auth/railtie.rb
Overview
:nodoc:
Defined Under Namespace
Modules: ClassMethods, InstanceMethods
Class Method Summary collapse
-
.included(base) ⇒ Object
:nodoc:.
Class Method Details
.included(base) ⇒ Object
:nodoc:
23 24 25 26 27 28 29 30 31 32 33 34 35 |
# File 'lib/api_auth/railtie.rb', line 23 def self.included(base) base.extend(ClassMethods) if base.respond_to?('class_attribute') base.class_attribute :hmac_access_id base.class_attribute :hmac_secret_key base.class_attribute :use_hmac else base.class_inheritable_accessor :hmac_access_id base.class_inheritable_accessor :hmac_secret_key base.class_inheritable_accessor :use_hmac end end |