Skip to content

Instantly share code, notes, and snippets.

View sdownie's full-sized avatar

Scott Downie sdownie

View GitHub Profile
::Refinery::ApplicationController.module_eval do
def self.included(base) # Extend controller
base.helper_method :home_page?, :local_request?, :just_installed?,
:from_dialog?, :admin?, :login?, :current_refinery_user, :current_user_session,
:refinery_user_signed_in?, :refinery_user?
base.protect_from_forgery # See ActionController::RequestForgeryProtection
base.send :include, Refinery::Crud # basic create, read, update and delete methods