As configured in my dotfiles.
start new:
tmux
start new with session name:
require 'mina/bundler' | |
require 'mina/git' | |
require 'mina/rbenv' | |
set :domain, 'your_domain.com' | |
set :deploy_to, '/home/deployer/app_name' | |
set :repository, '[email protected]:user_name/app_name' | |
set :branch, ENV["brunch"] || 'master' | |
set :app_name, "app_name" |
As configured in my dotfiles.
start new:
tmux
start new with session name:
# app/models/ability.rb | |
# All front end users are authorized using this class | |
class Ability | |
include CanCan::Ability | |
def initialize(user) | |
user ||= AdminUser.new | |
case user.role | |
when "admin" |