Module: Garage::Strategy::Test

Extended by:
ActiveSupport::Concern
Defined in:
lib/garage/strategy/test.rb

Instance Method Summary collapse

Instance Method Details

#access_tokenObject



10
11
12
13
14
15
16
17
# File 'lib/garage/strategy/test.rb', line 10

def access_token
  if defined? @access_token
    @access_token
  else
    token = AccessToken.new(attributes.merge(token: requested_token, token_type: 'bearer'))
    @access_token = token.token.present? && token.accessible? ? token : nil
  end
end

#verify_permission?Boolean

Returns:

  • (Boolean)


19
20
21
# File 'lib/garage/strategy/test.rb', line 19

def verify_permission?
  true
end