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
# config/initializers/disable_mass_assignment.rb | |
module Mongoid::Document | |
self.included do |base| | |
base.send(:attr_accessible, nil) | |
end | |
end |
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
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\[\033[01;32m\]$(__git_ps1 "(%s)")\[\033[00m\]\$ ' |
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
wait { browser.div(:id, 'id').text.should include 'Some Message' } | |
def wait(&block) | |
begin | |
Timeout::timeout(15) do | |
while not block_successful?(&block) | |
sleep 0.5 | |
end | |
end | |
rescue Timeout::Error |