diff options
author | Emilio Tagua <miloops@gmail.com> | 2009-05-26 12:12:19 -0300 |
---|---|---|
committer | Emilio Tagua <miloops@gmail.com> | 2009-05-26 12:12:19 -0300 |
commit | ae1e0ac5e98a7e5a2894d0a431f8c34af6575cae (patch) | |
tree | 7ae933e34eb0f1fe0fc4032b0f1a70d1afcdc423 /lib/arel/relations/operations/where.rb | |
parent | 4b8526dddd6a906a1879ec786401070b3545d7f4 (diff) | |
download | rails-ae1e0ac5e98a7e5a2894d0a431f8c34af6575cae.tar.gz rails-ae1e0ac5e98a7e5a2894d0a431f8c34af6575cae.tar.bz2 rails-ae1e0ac5e98a7e5a2894d0a431f8c34af6575cae.zip |
Removed lib to avoid any conflict in merge
Diffstat (limited to 'lib/arel/relations/operations/where.rb')
-rw-r--r-- | lib/arel/relations/operations/where.rb | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/lib/arel/relations/operations/where.rb b/lib/arel/relations/operations/where.rb deleted file mode 100644 index 608aaeb4b7..0000000000 --- a/lib/arel/relations/operations/where.rb +++ /dev/null @@ -1,16 +0,0 @@ -module Arel - class Where < Compound - attributes :relation, :predicate - deriving :== - - def initialize(relation, *predicates, &block) - predicate = block_given?? yield(relation) : predicates.shift - @relation = predicates.empty?? relation : Where.new(relation, *predicates) - @predicate = predicate.bind(@relation) - end - - def wheres - @wheres ||= (relation.wheres + [predicate]).collect { |p| p.bind(self) } - end - end -end |