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
- .load_routes ⇒ Object
-
.routes ⇒ Object
mattr_accessor :routes.
- .routes_loaded? ⇒ Boolean
Class Method Details
.load_routes ⇒ Object
26 27 28 |
# File 'lib/trail_api.rb', line 26 def self.load_routes @@routes_loaded = require 'config/routes' unless routes_loaded? end |
.routes ⇒ Object
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
30 31 32 |
# File 'lib/trail_api.rb', line 30 def self.routes_loaded? @@routes_loaded end |