Skip to content

Commit

Permalink
load_object => load_<name>
Browse files Browse the repository at this point in the history
  • Loading branch information
jsqu99 committed Sep 18, 2011
1 parent 57ed063 commit 82cc21a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions app/controllers/admin/orders_controller_decorator.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Admin::OrdersController.class_eval do
def comments
load_object
load_order
@comment_types = CommentType.where(:applies_to => "Order")
end
end
end
4 changes: 2 additions & 2 deletions app/controllers/admin/shipments_controller_decorator.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Admin::ShipmentsController.class_eval do
def comments
load_object
load_shipment
@comment_types = CommentType.where(:applies_to => "Shipment")
end
end
end

0 comments on commit 82cc21a

Please sign in to comment.