Module: Castle::CastleClient

Defined in:
lib/castle/support/rails.rb

Instance Method Summary collapse

Instance Method Details

#castleObject



5
6
7
# File 'lib/castle/support/rails.rb', line 5

def castle
  @castle ||= request.env['castle'] || Castle::Client.from_request(request)
end