diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2008-11-07 16:22:28 -0500 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2008-11-07 16:22:28 -0500 |
commit | 15c077492029dcba477aad2e29339803377cc1f8 (patch) | |
tree | b736a861bba1c3b3d8b8c63ab2cc129b94b444f0 /activerecord/lib | |
parent | 4af46c4ba1c87333b24d820150f3ecc59165d92a (diff) | |
download | rails-15c077492029dcba477aad2e29339803377cc1f8.tar.gz rails-15c077492029dcba477aad2e29339803377cc1f8.tar.bz2 rails-15c077492029dcba477aad2e29339803377cc1f8.zip |
undef abstract methods instead of raising NotImplementedError. Still need the definitions for rdoc though.
Diffstat (limited to 'activerecord/lib')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb b/activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb index 97c6cd4331..189c6c7b5a 100644 --- a/activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb +++ b/activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb @@ -31,13 +31,13 @@ module ActiveRecord # Returns an array of arrays containing the field values. # Order is the same as that returned by +columns+. def select_rows(sql, name = nil) - raise NotImplementedError, "select_rows is an abstract method" end + undef_method :select_rows # Executes the SQL statement in the context of this connection. - def execute(sql, name = nil) - raise NotImplementedError, "execute is an abstract method" + def execute(sql, name = nil, skip_logging = false) end + undef_method :execute # Returns the last auto-generated ID from the affected table. def insert(sql, name = nil, pk = nil, id_value = nil, sequence_name = nil) @@ -163,8 +163,8 @@ module ActiveRecord # Returns an array of record hashes with the column names as keys and # column values as values. def select(sql, name = nil) - raise NotImplementedError, "select is an abstract method" end + undef_method :select # Returns the last auto-generated ID from the affected table. def insert_sql(sql, name = nil, pk = nil, id_value = nil, sequence_name = nil) |