Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Merb::Controller < Merb::AbstractController
- class_inheritable_accessor :_hidden_actions, :_shown_actions
- self._hidden_actions ||= []
- self._shown_actions ||= []
- class_inheritable_accessor :_subclasses, :_session_id_key, :_session_secret_key, :_session_expiry, :_session_cookie_domain
- self._subclasses = Set.new
- def self.subclasses_list() _subclasses end
- self._session_secret_key = nil
- self._session_id_key = Merb::Config[:session_id_key] || '_session_id'
- self._session_expiry = Merb::Config[:session_expiry] || Merb::Const::WEEK * 2
- self._session_cookie_domain = Merb::Config[:session_cookie_domain]
- include Merb::ResponderMixin
- include Merb::ControllerMixin
- include Merb::AuthenticationMixin
- attr_accessor :route
- class << self
- # ==== Parameters
- # klass<Merb::Controller>::
- # The Merb::Controller inheriting from the base class.
- def inherited(klass)
- _subclasses << klass.to_s
- super
- klass._template_root = Merb.dir_for(:view) unless self._template_root
- end
Add Comment
Please, Sign In to add comment