Class: CartItem

Inherits:
ActiveRecord::Base
  • Object
show all
Extended by:
Carter::ActiveRecord::Extensions
Includes:
Carter::StateMachine::CartItem
Defined in:
app/models/cart_item.rb

Instance Method Summary collapse

Methods included from Carter::ActiveRecord::Extensions

money_composed_column, money_constructor, money_converter

Methods included from Carter::StateMachine::CartItem

included

Instance Method Details

#refreshObject



31
32
33
# File 'app/models/cart_item.rb', line 31

def refresh
  update_attributes :price => cartable.cartable_price, :name => cartable.cartable_name 
end