mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Merge pull request #38720 from eileencodes/remove-convenience-class-def
Remove convenience class alias
This commit is contained in:
commit
311b94d495
2 changed files with 2 additions and 5 deletions
|
@ -43,7 +43,7 @@ module Arel
|
|||
end
|
||||
|
||||
def self.arel_node?(value) # :nodoc:
|
||||
value.is_a?(Arel::Node) || value.is_a?(Arel::Attribute) || value.is_a?(Arel::Nodes::SqlLiteral)
|
||||
value.is_a?(Arel::Nodes::Node) || value.is_a?(Arel::Attribute) || value.is_a?(Arel::Nodes::SqlLiteral)
|
||||
end
|
||||
|
||||
def self.fetch_attribute(value, &block) # :nodoc:
|
||||
|
@ -59,7 +59,4 @@ module Arel
|
|||
fetch_attribute(value.expr, &block)
|
||||
end
|
||||
end
|
||||
|
||||
## Convenience Alias
|
||||
Node = Arel::Nodes::Node # :nodoc:
|
||||
end
|
||||
|
|
|
@ -5,7 +5,7 @@ require_relative "../helper"
|
|||
module Arel
|
||||
class TestNode < Arel::Test
|
||||
def test_includes_factory_methods
|
||||
assert Node.new.respond_to?(:create_join)
|
||||
assert Arel::Nodes::Node.new.respond_to?(:create_join)
|
||||
end
|
||||
|
||||
def test_all_nodes_are_nodes
|
||||
|
|
Loading…
Reference in a new issue