Sha256: 9bc7ba9e9756f23bb727e13af654da056363c9017849e9af3a9ab08d80573a9d
Contents?: true
Size: 670 Bytes
Versions: 1
Compression:
Stored size: 670 Bytes
Contents
module Castronaut module Presenters class Base attr_reader :controller, :your_mission, :ticket_granting_ticket attr_accessor :messages delegate :params, :request, :to => :controller delegate :cookies, :env, :to => :request def initialize(controller) @controller = controller @messages = [] end def service params['service'] end def renewal params['renew'] end def ticket params['ticket'] end def client_host env['HTTP_X_FORWARDED_FOR'] || env['REMOTE_HOST'] || env['REMOTE_ADDR'] end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
3mix-castronaut-0.5.0.2 | lib/castronaut/presenters/base.rb |