Skip to content

Commit

Permalink
Price could be nil
Browse files Browse the repository at this point in the history
  • Loading branch information
Ania committed Dec 17, 2010
1 parent b39cb06 commit ab08060
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/activity.rb
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ def role_name
end

def price_as_json
price.as_json
price.as_json if price
end

def price_frozen?
Expand Down

0 comments on commit ab08060

Please sign in to comment.