Skip to content

Commit

Permalink
Merge pull request rsim#173 from yahonda/address_no_method_error_colu…
Browse files Browse the repository at this point in the history
…mn_types_rails4

Address NoMethodError: undefined method `column_types'
  • Loading branch information
Edgars Beigarts committed Jun 5, 2012
2 parents 8e060fd + 106f86a commit b90cd2b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1097,7 +1097,7 @@ def columns_without_cache(table_name, name = nil) #:nodoc:
SQL

# added deletion of ignored columns
select_all(table_cols, name).delete_if do |row|
select_all(table_cols, name).to_a.delete_if do |row|
ignored_columns && ignored_columns.include?(row['name'].downcase)
end.map do |row|
limit, scale = row['limit'], row['scale']
Expand Down Expand Up @@ -1273,7 +1273,7 @@ def translate_exception(exception, message) #:nodoc:

def select(sql, name = nil, binds = [])
if ActiveRecord.const_defined?(:Result)
exec_query(sql, name, binds).to_a
exec_query(sql, name, binds)
else
log(sql, name) do
@connection.select(sql, name, false)
Expand Down

0 comments on commit b90cd2b

Please sign in to comment.