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 ActiveRecord | |
class Base | |
class << self | |
def default_scope(options = {}) | |
reset_scoped_methods | |
default_scoping = self.default_scoping.dup | |
previous = default_scoping.pop | |
if previous.respond_to?(:call) or options.respond_to?(:call) |
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
development: | |
adapter: mysql2 # must =~ /mysql/ | |
database: adamDb # required | |
username: your_user | |
password: keep_secret | |
live: | |
ssh_user: # optional, use if live system user differs from your dev user | |
host: example.com # required, can be IP | |
adapter: mysql2 # must =~ /mysql/ |
NewerOlder