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:
43 44 45 46 47 48 49 50 51 52 53 54 55 56 |
# File 'lib/api_auth/railtie.rb', line 43 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 |