Sha256: d715a7bb840c6267cd733cbd3dab6cf366c5270f57ba72a2ff00fffa863db4f9

Contents?: true

Size: 930 Bytes

Versions: 6

Compression:

Stored size: 930 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
  helper :all # include all helpers, all the time

  include AuthenticatedSystem

  before_filter :login_required
  
  before_filter :set_current_account
  
  # See ActionController::RequestForgeryProtection for details
  # Uncomment the :secret if you're not using the cookie session store
  protect_from_forgery # :secret => '3f6014c50e2266aa27431c8e0022ea3f'
  
  # See ActionController::Base for details 
  # Uncomment this to filter the contents of submitted sensitive data parameters
  # from your application log (in this case, all fields with names like "password"). 
  # filter_parameter_logging :password
  
  protected
    def set_current_account
      Account.current_account = self.current_account
    end
end

Version data entries

6 entries across 3 versions & 1 rubygems

Version Path
emergent-core-0.1.0 rails_generators/emergent_config/templates/app/controllers/application.rb
emergent-core-0.1.0 rails_generators/emergent_config/templates/lib/app_controller.rb.erb
emergent-core-0.1.01 rails_generators/emergent_config/templates/app/controllers/application.rb
emergent-core-0.1.02 rails_generators/emergent_config/templates/lib/app_controller.rb.erb
emergent-core-0.1.01 rails_generators/emergent_config/templates/lib/app_controller.rb.erb
emergent-core-0.1.02 rails_generators/emergent_config/templates/app/controllers/application.rb