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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 42553d8157ba5252c154c976c4529880b87af3bc
4
- data.tar.gz: 86c9c285a2615bc7b5e0f7f014ffe49505f3c1f0
3
+ metadata.gz: 9e0a100ac784a3902b6009cffd8f65adea89fa2c
4
+ data.tar.gz: 412faee8d52e9cd3c9e44312e9060c6fe2a28b08
5
5
  SHA512:
6
- metadata.gz: 859ac84e0472cd698ca7aa421da07c3b7a7cd323124494e67a10de7224a8184af7a7c433d7ad03fdddc3722f56552c39f387b197e6c7fdbce6b3182ec8b0f523
7
- data.tar.gz: 4de2071e00188e8601cdad2d831405298ebf8824184881ec28e08c7e90a155d065cc9fc2da43c2ef6c502aa8843d76801c989a761f0b2b00afb98c2078206602
6
+ metadata.gz: 09faf1bede8e3519327e6c5c49cd0d3874e88e3dcc16b789e9dce0825c045ec67818015ff5e1f6b971d0b75162d4f995a0f476b70d71613ac397388f0925923a
7
+ data.tar.gz: f9bb39d67be57ad4809c07969c10955c1825446cd29ce7a31d62139a78577bbbdcee8f24e88c4ee65d28c5fa0541afdebc3a212e3068214cc3663c7cbac80dbc
@@ -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)
@@ -1,3 +1,3 @@
1
1
  module Activator
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
3
3
  end
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.6
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: 2014-12-05 00:00:00.000000000 Z
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.2.2
86
+ rubygems_version: 2.4.5
86
87
  signing_key:
87
88
  specification_version: 4
88
89
  summary: Mark one model as active