Skip to content
This repository has been archived by the owner on Nov 17, 2018. It is now read-only.

Commit

Permalink
Added activerecord-multiconditions.rb file to enable RubyGems single-…
Browse files Browse the repository at this point in the history
…line inclusion.
  • Loading branch information
weppos committed Feb 8, 2009
1 parent 6865af9 commit 456c6ab
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.rdoc
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@

* FIXED: Change 'Task' to ActiveRecord::Base in method (closes #141).

* ADDED: Added activerecord-multiconditions.rb file to enable RubyGems single-line inclusion.

require 'activerecord-multiconditions'

* CHANGED: MultiConditions.new now requires the first parameter to be the ActiveRecord model class. The new method ActiveRecord::Base#multiconditions is now the preferred way to to initialize a new MultiConditions instance.

class Task < ActiveRecord::Base; end;
Expand Down
2 changes: 1 addition & 1 deletion README.rdoc
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ If you need the latest development version you can download the source code from
First, don't forget to require the library.

require 'rubygems'
require 'activerecord-multiconditions/multiconditions'
require 'activerecord-multiconditions'

Now +MultiConditions+ object is automatically available as subclass of any ActiveRecord object.

Expand Down
16 changes: 16 additions & 0 deletions lib/activerecord-multiconditions.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#
# = ActiveRecord::MultiConditions
#
# An ActiveRecord plugin for dealing with complex search :conditions.
#
#
# Category:: ActiveRecord
# Package:: ActiveRecord::MultiConditions
# Author:: Simone Carletti <weppos@weppos.net>
#
#--
# SVN: $Id$
#++


require 'multi_conditions'

0 comments on commit 456c6ab

Please sign in to comment.