activator 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/activator.rb +8 -0
- data/lib/activator/version.rb +1 -1
- metadata +5 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9e0a100ac784a3902b6009cffd8f65adea89fa2c
|
4
|
+
data.tar.gz: 412faee8d52e9cd3c9e44312e9060c6fe2a28b08
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 09faf1bede8e3519327e6c5c49cd0d3874e88e3dcc16b789e9dce0825c045ec67818015ff5e1f6b971d0b75162d4f995a0f476b70d71613ac397388f0925923a
|
7
|
+
data.tar.gz: f9bb39d67be57ad4809c07969c10955c1825446cd29ce7a31d62139a78577bbbdcee8f24e88c4ee65d28c5fa0541afdebc3a212e3068214cc3663c7cbac80dbc
|
data/lib/activator.rb
CHANGED
@@ -23,6 +23,14 @@ module Activator
|
|
23
23
|
end
|
24
24
|
end
|
25
25
|
|
26
|
+
def respond_to?(name, include_private = false)
|
27
|
+
if name == used_activator_field
|
28
|
+
true
|
29
|
+
else
|
30
|
+
super
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
26
34
|
private
|
27
35
|
def activator_search_item
|
28
36
|
find_by(:"#{used_activator_field}" => true)
|
data/lib/activator/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: activator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jelmer Snoeck
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-02-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -64,7 +64,8 @@ files:
|
|
64
64
|
- lib/activator.rb
|
65
65
|
- lib/activator/version.rb
|
66
66
|
homepage: https://github.com/jelmersnoeck/activator
|
67
|
-
licenses:
|
67
|
+
licenses:
|
68
|
+
- MIT
|
68
69
|
metadata: {}
|
69
70
|
post_install_message:
|
70
71
|
rdoc_options: []
|
@@ -82,7 +83,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
82
83
|
version: '0'
|
83
84
|
requirements: []
|
84
85
|
rubyforge_project:
|
85
|
-
rubygems_version: 2.
|
86
|
+
rubygems_version: 2.4.5
|
86
87
|
signing_key:
|
87
88
|
specification_version: 4
|
88
89
|
summary: Mark one model as active
|