Permalink
Browse files

Fix of reporting of validation failures. (Thanks to Misha and Igor Ar…

…bizu)

[#695 state:resolved]
  • Loading branch information...
romul authored and schof committed Dec 9, 2009
1 parent f538543 commit e7910a4650d9210f04022a291d8165e4c26be156
@@ -44,7 +44,7 @@ def object
@object ||= end_of_association_chain.find(param) unless param.nil?
else
# hack by sean to allow permalink objects
- @object = end_of_association_chain.find_by_param!(param)
+ @object ||= end_of_association_chain.find_by_param!(param)
end
@object
#@object ||= end_of_association_chain.find(param) unless param.nil?

0 comments on commit e7910a4

Please sign in to comment.