Module: Sinatra::Rider
- Defined in:
- lib/sinatra/rider.rb,
lib/sinatra/rider/user.rb,
lib/sinatra/rider/assets.rb,
lib/sinatra/rider/command.rb,
lib/sinatra/rider/pathing.rb,
lib/sinatra/rider/version.rb,
lib/sinatra/rider/quiet_assets.rb,
lib/sinatra/rider/configuration.rb,
lib/sinatra/rider/authentication.rb
Defined Under Namespace
Modules: Assets, AuthHelpers, Authentication, Configuration, Pathing, QuietAssets Classes: Command, Generator, User
Constant Summary collapse
- VERSION =
'0.2.4'
Class Method Summary collapse
Class Method Details
.registered(app) ⇒ Object
19 20 21 22 23 24 25 26 27 28 29 30 31 |
# File 'lib/sinatra/rider.rb', line 19 def self.registered(app) app.set :database_file, File.join(app.root, 'config/database.yml').to_s %w(app lib).map do |path| Dir.glob("#{File.join(app.root, path)}/*.rb").each { |file| require file } end app.register Sinatra::ActiveRecordExtension app.register Sinatra::Rider::Assets app.register Sinatra::Rider::Authentication app.register Sinatra::Rider::Configuration app.register Sinatra::Rider::Pathing end |