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
# spec/support/requests/auth_helpers.rb | |
module Requests | |
module AuthHelpers | |
module Extensions | |
def sign_in(user) | |
let(:auth_helpers_auth_token) { | |
self.public_send(user).create_new_auth_token | |
} | |
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
[alias] | |
wow = log --all --graph --decorate --oneline --simplify-by-decoration | |
wip = commit -m 'WIP [ci skip]' | |
co = checkout | |
ci = commit | |
st = status | |
rebsae = rebase | |
re = rebase | |
linereport = ls-files | while read f; do git blame --line-porcelain $f | grep '^author '; done | sort -f | uniq -ic | sort -n | |
hist = log --pretty=format:'%h %ad | %s%d [%an]' --graph --date=short |
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
# Rails enum does not decorate transient attribute getters | |
# This concern aims to set getters if enum for | |
# transient attribute has been defined. | |
# | |
# Also enables question? methods. | |
# | |
# Example usage: | |
# class Model < ActiveRecord::Base | |
# include TransientEnumerable | |
# |
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/deploy.rb, config/deploy/production.rb etc. | |
# contents omitted | |
### | |
# example: add backup task prior to deploy | |
namespace :deploy do | |
before :deploy, "db:dump" | |
end |