Permalink
Browse files

Don't error when trying to lookup instance values

  • Loading branch information...
1 parent 1a31bee commit c1d18e9bcd35242835d41261e8f34d23d5891233 @jamesdabbs committed Mar 13, 2013
Showing with 2 additions and 0 deletions.
  1. +2 −0 lib/cave/model_form.rb
View
@@ -12,6 +12,8 @@ def initialize instance=nil, attrs={}
def lookup attr_name
super || @instance.send(attr_name)
+ rescue
+ nil
end
def for instance

0 comments on commit c1d18e9

Please sign in to comment.