Sha256: 0852b9cca8943945b90c095d2ecb952b9999d42bb42e01c13d314281487fc357
Contents?: true
Size: 1017 Bytes
Versions: 4
Compression:
Stored size: 1017 Bytes
Contents
# Filters added to this controller apply to all controllers in the application. # Likewise, all the methods added will be available for all controllers. class ApplicationController < ActionController::Base before_filter :instantiate_controller_and_action_names # Pick a unique cookie name to distinguish our session data from others' session :session_key => '_spree_session_id' # See ActionController::RequestForgeryProtection for details # Uncomment the :secret if you're not using the cookie session store # (SECURITY WARNING: Choose you own secret key, do not use the one below without changing it!) protect_from_forgery #:secret => '55a66755bef2c41d411bd5486c001b16' include AuthenticatedSystem include RoleRequirementSystem include EasyRoleRequirementSystem private def instantiate_controller_and_action_names @current_action = action_name @current_controller = controller_name @taxonomies = Taxonomy.find(:all, :include => {:root => :children}) end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
spree-0.4.0 | app/controllers/application.rb |
spree-0.4.1 | app/controllers/application.rb |
spree-0.5.0 | app/controllers/application.rb |
spree-0.5.1 | app/controllers/application.rb |