cleanup in AR adapter
This commit is contained in:
parent
00ab233606
commit
074885cca1
@ -317,7 +317,7 @@ module ActiveRecord
|
|||||||
end
|
end
|
||||||
|
|
||||||
def insert_sql(sql, name = nil, pk = nil, id_value = nil, sequence_name = nil)
|
def insert_sql(sql, name = nil, pk = nil, id_value = nil, sequence_name = nil)
|
||||||
super sql, name
|
super
|
||||||
id_value || @connection.last_id
|
id_value || @connection.last_id
|
||||||
end
|
end
|
||||||
alias :create :insert_sql
|
alias :create :insert_sql
|
||||||
@ -617,7 +617,7 @@ module ActiveRecord
|
|||||||
# Returns an array of record hashes with the column names as keys and
|
# Returns an array of record hashes with the column names as keys and
|
||||||
# column values as values.
|
# column values as values.
|
||||||
def select(sql, name = nil)
|
def select(sql, name = nil)
|
||||||
result = execute(sql, name).each(:as => :hash)
|
execute(sql, name).each(:as => :hash)
|
||||||
end
|
end
|
||||||
|
|
||||||
def supports_views?
|
def supports_views?
|
||||||
|
Loading…
Reference in New Issue
Block a user