Skip to content

Commit

Permalink
[api] Don't use deprecated syntax in ProductPropertiesController
Browse files Browse the repository at this point in the history
  • Loading branch information
radar committed Oct 25, 2012
1 parent b95f7d5 commit 1c4e04e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def product

def product_property
if @product
@product_property ||= @product.product_properties.find(:first, :joins => :property, :conditions => {'spree_properties.name' => params[:id]},:readonly => false)
@product_property ||= @product.product_properties.joins(:property).where('spree_properties.name' => params[:id]).readonly(false)
@product_property ||= @product.product_properties.find_by_id(params[:id])
end
end
Expand Down

0 comments on commit 1c4e04e

Please sign in to comment.