date_scopes 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +1 -2
- data/Gemfile.lock +1 -1
- data/lib/date_scopes/version.rb +1 -1
- data/lib/date_scopes.rb +1 -1
- data/spec/support/test.sqlite3 +0 -0
- metadata +5 -4
data/.gitignore
CHANGED
data/Gemfile.lock
CHANGED
data/lib/date_scopes/version.rb
CHANGED
data/lib/date_scopes.rb
CHANGED
@@ -27,7 +27,7 @@ module DateScopes
|
|
27
27
|
options.to_options!.reverse_merge! :column => 'published'
|
28
28
|
column_name = "#{options[:column]}_at"
|
29
29
|
|
30
|
-
raise
|
30
|
+
raise ActiveRecord::ActiveRecordError, "Could not find the #{column_name} column on the #{table_name} table" unless column_names.include? column_name
|
31
31
|
|
32
32
|
on_scope_sql = "#{table_name}.#{column_name} <= ?"
|
33
33
|
|
Binary file
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: date_scopes
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 19
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 4
|
10
|
+
version: 0.1.4
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Jonathan Davies
|
@@ -16,7 +16,7 @@ autorequire:
|
|
16
16
|
bindir: bin
|
17
17
|
cert_chain: []
|
18
18
|
|
19
|
-
date: 2011-01-
|
19
|
+
date: 2011-01-28 00:00:00 +00:00
|
20
20
|
default_executable:
|
21
21
|
dependencies:
|
22
22
|
- !ruby/object:Gem::Dependency
|
@@ -115,6 +115,7 @@ files:
|
|
115
115
|
- spec.watchr
|
116
116
|
- spec/date_scopes_spec.rb
|
117
117
|
- spec/spec_helper.rb
|
118
|
+
- spec/support/test.sqlite3
|
118
119
|
has_rdoc: yard
|
119
120
|
homepage: https://github.com/ThroughTheNet/date_scopes
|
120
121
|
licenses:
|