libraries 0.0.3 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/libraries/active_record.rb +1 -1
- data/lib/libraries/version.rb +1 -1
- metadata +3 -3
@@ -23,7 +23,7 @@ module ActiveRecord
|
|
23
23
|
|
24
24
|
def date_range(options)
|
25
25
|
options.reverse_merge! :field => "created_at", :start => Time.now, :end => Time.now
|
26
|
-
scoped :conditions => { options[:field] => options[:range] || options[:start]..options[:end] }
|
26
|
+
scoped :conditions => { options[:field] => options[:range] || (options[:start]..options[:end]) }
|
27
27
|
end
|
28
28
|
|
29
29
|
def sort_scope(options)
|
data/lib/libraries/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: libraries
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 27
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
|
+
- 1
|
8
9
|
- 0
|
9
|
-
|
10
|
-
version: 0.0.3
|
10
|
+
version: 0.1.0
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- On-Site.com
|