Skip to content

Commit

Permalink
enable mass assignment of is_gift_card for latest rails
Browse files Browse the repository at this point in the history
  • Loading branch information
lostboy committed Jun 1, 2012
1 parent 763b390 commit 2455b1b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/models/spree/product_decorator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,6 @@
scope :gift_cards, where(["products.is_gift_card = ?", true])
scope :not_gift_cards, where(["products.is_gift_card = ?", false])

attr_accessible :is_gift_card

end

0 comments on commit 2455b1b

Please sign in to comment.