Module: DevisePaypal::Controllers::UrlHelpers

Defined in:
lib/devise_paypal/controllers/url_helpers.rb

Instance Method Summary collapse

Instance Method Details

#paypal_authable_callback_url(resource_or_scope, *args) ⇒ Object



4
5
6
7
# File 'lib/devise_paypal/controllers/url_helpers.rb', line 4

def paypal_authable_callback_url(resource_or_scope, *args)
  scope = Devise::Mapping.find_scope!(resource_or_scope)
  send("#{scope}_paypal_authable_callback_url", *args)
end

#paypal_permissions_authable_callback_url(resource_or_scope, *args) ⇒ Object



9
10
11
12
# File 'lib/devise_paypal/controllers/url_helpers.rb', line 9

def paypal_permissions_authable_callback_url(resource_or_scope, *args)
  scope = Devise::Mapping.find_scope!(resource_or_scope)
  send("#{scope}_paypal_permissions_authable_callback_url", *args)
end