Skip to content
This repository has been archived by the owner on Nov 17, 2017. It is now read-only.
/ auto_admin Public archive

Commit

Permalink
There was actually a reason I made that change the first time. :P
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewd committed Sep 29, 2006
1 parent 755e8f5 commit 70ef382
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/auto_admin_django_theme.rb
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,10 @@ def fieldset(style, title=nil)
super
end
def table_cell(field_type, field_name, options)
column = model.find_column(field_name)
assoc = model.reflect_on_association(field_name.to_sym)
if field_name
column = model.find_column(field_name)
assoc = model.reflect_on_association(field_name.to_sym)
end

klass = assoc ? assoc.klass.name.underscore :
column ? column.type :
Expand Down

0 comments on commit 70ef382

Please sign in to comment.