diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2016-12-28 21:53:51 -0500 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2016-12-28 21:53:51 -0500 |
commit | 010e246756c09f44e901f4fd8e8eab2cb3022e95 (patch) | |
tree | de880274810f885232ac51bbf529bab0366eca45 /activerecord/lib/active_record/connection_adapters/abstract_adapter.rb | |
parent | 09cdf425d70cfec541e0008c28055155d70c6f37 (diff) | |
download | rails-010e246756c09f44e901f4fd8e8eab2cb3022e95.tar.gz rails-010e246756c09f44e901f4fd8e8eab2cb3022e95.tar.bz2 rails-010e246756c09f44e901f4fd8e8eab2cb3022e95.zip |
Fix Rubocop violations and fix documentation visibility
Some methods were added to public API in
5b14129d8d4ad302b4e11df6bd5c7891b75f393c and they should be not part of
the public API.
Diffstat (limited to 'activerecord/lib/active_record/connection_adapters/abstract_adapter.rb')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/abstract_adapter.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb b/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb index 1badbb576d..4046b3829d 100644 --- a/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb +++ b/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb @@ -571,7 +571,7 @@ module ActiveRecord end end - def translate_exception_class(e, sql) # :doc: + def translate_exception_class(e, sql) begin message = "#{e.class.name}: #{e.message}: #{sql}" rescue Encoding::CompatibilityError @@ -596,7 +596,7 @@ module ActiveRecord raise translate_exception_class(e, sql) end - def translate_exception(exception, message) # :doc: + def translate_exception(exception, message) # override in derived class case exception when RuntimeError @@ -606,7 +606,7 @@ module ActiveRecord end end - def without_prepared_statement?(binds) # :doc: + def without_prepared_statement?(binds) !prepared_statements || binds.empty? end |