Skip to content

Instantly share code, notes, and snippets.

View efalcao's full-sized avatar

Eric Falcao efalcao

View GitHub Profile
### Keybase proof
I hereby claim:
* I am efalcao on github.
* I am efalcao (https://keybase.io/efalcao) on keybase.
* I have a public key whose fingerprint is 2F68 0A5A FA5F FBA7 F2C3 A890 7447 7617 57A3 542E
To claim this, I am signing this object:
# in a config/initializers/sanitizer.rb add the following lines:
ActiveRecord::Base.send(:include, ActionView::Helpers::SanitizeHelper)
ActiveRecord::Base.send(:extend, ActionView::Helpers::SanitizeHelper::ClassMethods)
#!/bin/bash -e
if test "$RS_REBOOT" = "true" ; then
echo "Skip HTTPD install on reboot."
logger -t RightScale "Skip nginx install on reboot."
service nginx start
exit 0 # Leave with a smile ...
fi
module Authentication
def self.included(base)
base.class_eval <<-EVAL
before_filter :authenticate
include InstanceMethods
helper_method :current_user
helper_method :current_account
helper_method :current_account_user