binarylogic / searchlogic

Searchlogic provides object based searching, common named scopes, and other useful tools.
http://rdoc.info/projects/binarylogic/searchlogic
MIT License
1.39k stars 133 forks source link

Added between and between_inclusive primary conditions #120

Closed matkins closed 13 years ago

matkins commented 14 years ago

Hi binarylogic,

We've added between and between_inclusive primary conditions to lib/named_scopes/conditions.rb. Do you think they're worth having in the main project?

Matt

ghost commented 13 years ago

Sorry for the late reply. I think its a cool concept, but seems more like something that should be a named scope you create. Which is obviously trivial. You could include this scope in the base active record class easily. I think the core scopes should deal with simple objects: strings, numbers, etc. I'll think about it some more. Thanks for sharing.