Skip to content

Commit

Permalink
Remove deprecated ActiveRecord::Base.disable_implicit_join_references=
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelfranca committed Jan 4, 2015
1 parent efdc20f commit 0fbd1fc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 13 deletions.
4 changes: 4 additions & 0 deletions activerecord/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
* Remove deprecated `ActiveRecord::Base.disable_implicit_join_references=`.

*Rafael Mendonça França*

* Remove deprecated access to connection specification using a string acessor.

Now all strings will be handled as a URL.
Expand Down
7 changes: 0 additions & 7 deletions activerecord/lib/active_record/core.rb
Original file line number Diff line number Diff line change
Expand Up @@ -87,13 +87,6 @@ def self.configurations

mattr_accessor :maintain_test_schema, instance_accessor: false

def self.disable_implicit_join_references=(value)
ActiveSupport::Deprecation.warn(<<-MSG.squish)
Implicit join references were removed with Rails 4.1.
Make sure to remove this configuration because it does nothing.
MSG
end

class_attribute :default_connection_handler, instance_writer: false
class_attribute :find_by_statement_cache

Expand Down
6 changes: 0 additions & 6 deletions activerecord/test/cases/relations_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1382,12 +1382,6 @@ def test_primary_key
assert_equal "id", Post.all.primary_key
end

def test_disable_implicit_join_references_is_deprecated
assert_deprecated do
ActiveRecord::Base.disable_implicit_join_references = true
end
end

def test_ordering_with_extra_spaces
assert_equal authors(:david), Author.order('id DESC , name DESC').last
end
Expand Down

0 comments on commit 0fbd1fc

Please sign in to comment.