Skip to content

Instantly share code, notes, and snippets.

View brand-it's full-sized avatar

Brandt Lareau brand-it

View GitHub Profile
@brand-it
brand-it / application_controller.rb
Created April 1, 2010 03:00
It is a creative way to create access levels for the admin and any other type of users. Very scalable.
# Filters added to this controller apply to all controllers in the application.
# Likewise, all the methods added will be available for all controllers.
# Make sure that all the methods that redirect are handled in the controllers.
class ApplicationController < ActionController::Base
include AuthenticatedSystem
include Userstamp
include ExceptionLoggable
local_addresses.clear