module SimpleApiAuth::Authenticable
Public Instance Methods
acts_as_api_authenticable(options = {})
click to toggle source
# File lib/simple-api-auth/authenticable.rb, line 7 def acts_as_api_authenticable(options = {}) if api_authenticable? self.saa_options = saa_options.merge(options) else extend ClassMethods include InstanceMethods self.saa_options = SimpleApiAuth.config.make_model_options(options) saa_options[:auto_generate].each do |field| send(:after_initialize, "assign_#{field}") end end end
api_authenticable?()
click to toggle source
# File lib/simple-api-auth/authenticable.rb, line 3 def api_authenticable? false end