Markaby test
Ruby
code posted
by
Hans thisisne.at
created at 02 Mar 08:03, updated at 30 Apr 14:26
Edit
|
Back
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
def collection @search = Order.new_search(params[:search]) if params[:search].nil? || params[:search][:conditions].nil? @search.conditions.checkout_complete = true end @search.order_by ||= :created_at @search.order_as ||= "DESC" @search.per_page = Spree::Config[:orders_per_page] @collection = @search.find(:all, :include => [:user, :shipments, {:creditcards => :address}] ) end def this_is_pretty_cool @user = User.find(:name) end |
472 Bytes in 1 ms with coderay