diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2016-01-19 04:33:16 +0900 |
---|---|---|
committer | Jeremy Daer <jeremydaer@gmail.com> | 2016-04-19 23:03:46 -0700 |
commit | 67f4994a0bdf3f0ea4e42dddc47f9c1e452d424d (patch) | |
tree | 59ce88e8b90249c48cde75dd72fc5736cf4acccd /activerecord | |
parent | a0dcc95cd80c5546579fdc50294fdfefc289f41b (diff) | |
download | rails-67f4994a0bdf3f0ea4e42dddc47f9c1e452d424d.tar.gz rails-67f4994a0bdf3f0ea4e42dddc47f9c1e452d424d.tar.bz2 rails-67f4994a0bdf3f0ea4e42dddc47f9c1e452d424d.zip |
`undef_method` is not needed
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb | 5 |
1 files changed, 3 insertions, 2 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 824040775d..ddfd97b537 100644 --- a/activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb +++ b/activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb @@ -66,8 +66,8 @@ 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, binds = []) + raise NotImplementedError end - undef_method :select_rows # Executes the SQL statement in the context of this connection and returns # the raw result from the connection adapter. @@ -75,13 +75,14 @@ module ActiveRecord # method may be manually memory managed. Consider using the exec_query # wrapper instead. def execute(sql, name = nil) + raise NotImplementedError end - undef_method :execute # Executes +sql+ statement in the context of this connection using # +binds+ as the bind substitutes. +name+ is logged along with # the executed +sql+ statement. def exec_query(sql, name = 'SQL', binds = [], prepare: false) + raise NotImplementedError end # Executes insert +sql+ statement in the context of this connection using |