diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2016-12-29 02:50:21 -0500 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2016-12-29 17:53:03 -0500 |
commit | d5be101dd02214468a27b6839ffe338cfe8ef5f3 (patch) | |
tree | 65121d56a37241b3dc904bca0124a4c33511ebeb /activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb | |
parent | e646bad5b7c462187fc75c11d5c06e43759022d8 (diff) | |
download | rails-d5be101dd02214468a27b6839ffe338cfe8ef5f3.tar.gz rails-d5be101dd02214468a27b6839ffe338cfe8ef5f3.tar.bz2 rails-d5be101dd02214468a27b6839ffe338cfe8ef5f3.zip |
Remove deprecated `name` argument from `#tables`
Diffstat (limited to 'activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb b/activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb index 20fcac8a22..39afb797f2 100644 --- a/activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb +++ b/activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb @@ -310,19 +310,13 @@ module ActiveRecord show_variable "collation_database" end - def tables(name = nil) # :nodoc: + def tables # :nodoc: ActiveSupport::Deprecation.warn(<<-MSG.squish) #tables currently returns both tables and views. This behavior is deprecated and will be changed with Rails 5.1 to only return tables. Use #data_sources instead. MSG - if name - ActiveSupport::Deprecation.warn(<<-MSG.squish) - Passing arguments to #tables is deprecated without replacement. - MSG - end - data_sources end |