Module: TrailAPI

Defined in:
lib/trail_api.rb,
lib/trail_api/base.rb,
lib/trail_api/fund.rb,
lib/trail_api/donor.rb,
lib/trail_api/organization.rb

Defined Under Namespace

Classes: Base, Donor, Fund, Organization

Constant Summary collapse

@@uri =
"localhost:3000"
@@routes_loaded =
false

Class Method Summary collapse

Class Method Details

.load_routesObject



26
27
28
# File 'lib/trail_api.rb', line 26

def self.load_routes
  @@routes_loaded = require 'config/routes' unless routes_loaded?
end

.routesObject

mattr_accessor :routes



22
23
24
# File 'lib/trail_api.rb', line 22

def self.routes
  @@routes ||= ActionDispatch::Routing::RouteSet.new
end

.routes_loaded?Boolean

Returns:

  • (Boolean)


30
31
32
# File 'lib/trail_api.rb', line 30

def self.routes_loaded?
  @@routes_loaded
end