Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Gardening

  • Loading branch information...
commit 74cbef262093e2c28163d003308444067c02319f 1 parent b6dba86
authored February 08, 2010

Showing 1 changed file with 3 additions and 1 deletion. Show diff stats Hide diff stats

  1. 4  lib/typus/active_record.rb
4  lib/typus/active_record.rb
@@ -204,7 +204,9 @@ def typus_date_format(attribute = :default)
204 204
     # We are able to define which template to use to render the attribute 
205 205
     # within the form
206 206
     def typus_template(attribute)
207  
-      Typus::Configuration.config[name]['fields']['options']['templates'][attribute.to_s] rescue nil
  207
+      Typus::Configuration.config[name]['fields']['options']['templates'][attribute.to_s]
  208
+    rescue
  209
+      nil
208 210
     end
209 211
 
210 212
     ##

0 notes on commit 74cbef2

Please sign in to comment.
Something went wrong with that request. Please try again.