Sha256: 91b34bbbef8874e657e4f569faad9ff62016c4c005e8384d58d4b5221ee4c6cf
Contents?: true
Size: 766 Bytes
Versions: 2
Compression:
Stored size: 766 Bytes
Contents
require "colorize" if defined?(IRB) require "active_support" require "restly/version" require "oauth2" module Restly extend ActiveSupport::Autoload autoload :Base autoload :BaseProxy autoload :Proxies autoload :Configuration autoload :Collection autoload :ControllerMethods autoload :Associations autoload :EmbeddedAssociations autoload :NestedAttributes autoload :Error autoload :Connection autoload :Middleware autoload :ThreadLocal autoload :Client autoload :ConcernedInheritance if defined?(Rails::Console) def self.login(username, password) Base.current_token = { access_token: Client.new.password.get_token(username, password).token } end end end require 'restly/railtie' if Object.const_defined?('Rails')
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
restly-0.0.1.alpha.10 | lib/restly.rb |
restly-0.0.1.alpha.9 | lib/restly.rb |