Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am freemarmoset on github.
  • I am joebanks (https://keybase.io/joebanks) on keybase.
  • I have a public key ASB7MtIiLwGqCtMtOh4YLWin_0kwkWrcY0RZP8eR_LPV_Qo

To claim this, I am signing this object:

@freemarmoset
freemarmoset / dabblet.css
Created July 30, 2013 18:46
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
background: #f06;
background: linear-gradient(45deg, #f06, yellow);
min-height: 100%;
development:
adapter: mysql
database: connected_health_development
username: root
password:
socket: /tmp/mysql.sock
test:
adapter: mysql
database: connected_health_test
def as_json(options)
super(:except => :account).merge!(:representative => account.as_json)
end
def set_cart_to_current_customers()
@cart = current_customer.carts.find_by_cart_reference(params[:id])
return cart_access_denied unless @cart
end
def cart_access_denied
flash[:error] = "You are in an inconsistent customer state. As customer ##{current_customer.account_detail.customer_number} you are attemping to alter cart ##{params[:id]}"
redirect_to kehe_direct_home_path
false
end