class ActionFramework::Base
Base
class (in config.ru -> run ActionFramework::Base.new
)
Public Class Methods
new()
click to toggle source
# File lib/actionframework/base.rb, line 10 def initialize @app = Rack::Builder.new do # Initialize ActionFramework itself ActionFramework::Server.current map '/static' do run Rack::File.new("static") end map '/realtime' do run ActionFramework::Realtime.new end use Rack::Session::Cookie, :secret => ActionFramework::Server.current.get_settings.cookie_secret use Warden::Manager do |manager| config = File.read('./config/auth.rb') manager.failure_app = ActionFramework::Server.current eval config end # Run ActionFramework run ActionFramework::Server.current end end
Public Instance Methods
call(env)
click to toggle source
# File lib/actionframework/base.rb, line 37 def call env @app.call(env) end