microscope 0.1 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/microscope/mixin.rb +2 -2
- data/lib/microscope/version.rb +1 -1
- metadata +4 -4
data/lib/microscope/mixin.rb
CHANGED
@@ -18,8 +18,8 @@ module Microscope
|
|
18
18
|
boolean_fields = model_columns.select { |c| c.type == :boolean }.map(&:name)
|
19
19
|
class_eval do
|
20
20
|
boolean_fields.each do |field|
|
21
|
-
scope field, where(field => true)
|
22
|
-
scope "not_#{field}", where(field => false)
|
21
|
+
scope field, lambda { where(field => true) }
|
22
|
+
scope "not_#{field}", lambda { where(field => false) }
|
23
23
|
end
|
24
24
|
end
|
25
25
|
|
data/lib/microscope/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: microscope
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 0.1.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2013-07-
|
13
|
+
date: 2013-07-15 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: activesupport
|
@@ -147,7 +147,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
147
147
|
version: '0'
|
148
148
|
segments:
|
149
149
|
- 0
|
150
|
-
hash:
|
150
|
+
hash: 1493090215892188080
|
151
151
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
152
152
|
none: false
|
153
153
|
requirements:
|
@@ -156,7 +156,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
156
156
|
version: '0'
|
157
157
|
segments:
|
158
158
|
- 0
|
159
|
-
hash:
|
159
|
+
hash: 1493090215892188080
|
160
160
|
requirements: []
|
161
161
|
rubyforge_project:
|
162
162
|
rubygems_version: 1.8.23
|