This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### 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: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |