diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2015-09-26 01:02:06 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2015-09-26 01:02:06 -0300 |
commit | fa6807721297fb66917a8e1397791216ecba3b33 (patch) | |
tree | bed69ee30316631b5f4456448c7487a2b17f440e /activerecord/lib | |
parent | 0f89e15e803a19b427feae593bc7127b64bf357c (diff) | |
parent | 91909e799c94213357f0bbbbfb2d571b2779bb93 (diff) | |
download | rails-fa6807721297fb66917a8e1397791216ecba3b33.tar.gz rails-fa6807721297fb66917a8e1397791216ecba3b33.tar.bz2 rails-fa6807721297fb66917a8e1397791216ecba3b33.zip |
Merge pull request #21774 from amitsuroliya/fix_predicate_builder
Fix `ActiveRecord::PredicateBuilder` docs. as `register_handler` no m…
Diffstat (limited to 'activerecord/lib')
-rw-r--r-- | activerecord/lib/active_record/relation/predicate_builder.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/relation/predicate_builder.rb b/activerecord/lib/active_record/relation/predicate_builder.rb index e232516b0c..39e7b42629 100644 --- a/activerecord/lib/active_record/relation/predicate_builder.rb +++ b/activerecord/lib/active_record/relation/predicate_builder.rb @@ -67,7 +67,7 @@ module ActiveRecord # Arel::Nodes::And.new([range.start, range.end]) # ) # end - # ActiveRecord::PredicateBuilder.register_handler(MyCustomDateRange, handler) + # ActiveRecord::PredicateBuilder.new("users").register_handler(MyCustomDateRange, handler) def register_handler(klass, handler) @handlers.unshift([klass, handler]) end |