Sha256: fa90d6ca2b1364399a23cb058d5d72f5eeafa4534c2c128af5609fcec577d3c8
Contents?: true
Size: 731 Bytes
Versions: 1
Compression:
Stored size: 731 Bytes
Contents
# Responsible for locating the controller responsible for establishing the session class SessionControllerFinder def self.find if !Object.const_defined?(:ApplicationController) raise RailsCaddy::SessionControllerNotFoundError, "Cannot find ApplicationController. If you're sure that you have defined it, try adding require_dependency 'application_controller' prior to invoking RailsCaddy.init!" end candidate = ApplicationController # if candidate.session_options[:key].nil? # raise RailsCaddy::SessionUninitializedError, # "session does not appear to be established for #{candidate.class}. session: #{candidate.session_options.inspect}" # end candidate end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rails-caddy-0.0.8 | lib/rails-caddy/session_controller_finder.rb |