Module: Lasso

Defined in:
lib/lasso.rb,
lib/lasso/model/base.rb,
lib/lasso/model/instance.rb,
lib/lasso/model/settings.rb,
lib/lasso/controller/base.rb,
lib/lasso/controller/instance.rb,
lib/lasso/controller/settings.rb

Defined Under Namespace

Modules: Controller, Model

Instance Method Summary collapse

Instance Method Details

#oauthObject



18
19
20
21
# File 'lib/lasso.rb', line 18

def oauth
  include Lasso::Model
  yield if block_given?
end

#processes_oauth_transactions_for(model, settings = {}) ⇒ Object



12
13
14
15
16
# File 'lib/lasso.rb', line 12

def processes_oauth_transactions_for(model, settings = {})
  include Lasso::Controller
  self.oauth_model = model
  self.oauth_settings = settings
end