Skip to content

Commit

Permalink
[#659 state:resolved] table_exists? repeatedly queries the DB
Browse files Browse the repository at this point in the history
  • Loading branch information
bryanlarsen committed Apr 16, 2010
1 parent 0d423b7 commit 8ab161d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hobofields/lib/hobo_fields/model_extensions.rb
Expand Up @@ -208,7 +208,7 @@ def self.attr_type(name)

# Return the entry from #columns for the named column
def self.column(name)
return unless table_exists?
return unless (@table_exists ||= table_exists?)
name = name.to_s
columns.find {|c| c.name == name }
end
Expand Down

0 comments on commit 8ab161d

Please sign in to comment.