mcfly 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/mcfly/has_mcfly.rb +2 -1
- data/lib/mcfly/version.rb +1 -1
- metadata +2 -2
data/lib/mcfly/has_mcfly.rb
CHANGED
@@ -45,7 +45,8 @@ module Mcfly
|
|
45
45
|
def mcfly_lookup(name, options = {}, &block)
|
46
46
|
delorean_fn(name, options) do |ts, *args|
|
47
47
|
raise "time cannot be nil" if ts.nil?
|
48
|
-
self.where("obsoleted_dt >= ? AND
|
48
|
+
self.where("#{table_name}.obsoleted_dt >= ? AND " +
|
49
|
+
"#{table_name}.created_dt < ?", ts, ts).scoping do
|
49
50
|
block.call(ts, *args)
|
50
51
|
end
|
51
52
|
end
|
data/lib/mcfly/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mcfly
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.7
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-09-10 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|