This file contains hidden or 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
production: | |
after_rails: | |
- source: /.cloud66/log_files.yml | |
destination: /etc/log_files.yml | |
sudo: true | |
target: rails | |
apply_during: build_only | |
- source: /.cloud66/remote_syslog.init.d | |
destination: /etc/init.d/remote_syslog |
This file contains hidden or 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
> domains = %w(metrostorage.com goldenstatestorage.com securityself-storage.com meridianhillsassistedliving.com studyplaygrow.com collegiatestation.com pouchrecords.com cedarsedina.com apts-greenfield.com baycourtatharbourpointe.com a1storage.com madisontoluca.com morningsidehouse.com thespringsliving.com morganatloyolastation.com hideawaystorage.com storquest.com willowbrookplace.com) | |
=> ["metrostorage.com", "goldenstatestorage.com", "securityself-storage.com", "meridianhillsassistedliving.com", "studyplaygrow.com", "collegiatestation.com", "pouchrecords.com", "cedarsedina.com", "apts-greenfield.com", "baycourtatharbourpointe.com", "a1storage.com", "madisontoluca.com", "morningsidehouse.com", "thespringsliving.com", "morganatloyolastation.com", "hideawaystorage.com", "storquest.com", "willowbrookplace.com"] | |
> domains.size | |
=> 18 | |
> client_domains = ClientDomain.where(domain: domains) | |
=> ...truncated... | |
> client_domains.size |
This file contains hidden or 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
namespace :assets do | |
desc "Check that all assets have valid encoding" | |
task :check => :environment do | |
paths = ["public/javascripts", "public/stylesheets"] | |
extensions = ["js", "coffee", "css", "scss"] | |
paths.each do |path| | |
dir_path = Rails.root + path |
This file contains hidden or 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 G5 | |
module Strategies | |
class CookieAuthenticable < ::Warden::Strategies::Base | |
def valid? | |
request.params['s'] || request.cookies['_g5search_session'] | |
end | |
def authenticate! | |
user_id = if request.params['s'] | |
user_id = Util.decode(request.params['s'])[:user_id] |