flippeur 1.0.1 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/flippeur/rails_helpers.rb +1 -1
- data/lib/flippeur/version.rb +1 -1
- metadata +4 -4
@@ -2,7 +2,7 @@ module Flippeur
|
|
2
2
|
|
3
3
|
module ViewHelpers
|
4
4
|
def feature?(name)
|
5
|
-
available = Flippeur.find(name).available?
|
5
|
+
available = Flippeur.find(name).available? controller.send(Flippeur.actor)
|
6
6
|
block_given? ? (yield if available) : available
|
7
7
|
end
|
8
8
|
end
|
data/lib/flippeur/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: flippeur
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0
|
4
|
+
version: 1.1.0
|
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:
|
12
|
+
date: 2014-03-07 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|
@@ -64,7 +64,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
64
64
|
version: '0'
|
65
65
|
segments:
|
66
66
|
- 0
|
67
|
-
hash: -
|
67
|
+
hash: -251672096696114027
|
68
68
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
69
69
|
none: false
|
70
70
|
requirements:
|
@@ -73,7 +73,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
73
73
|
version: '0'
|
74
74
|
segments:
|
75
75
|
- 0
|
76
|
-
hash: -
|
76
|
+
hash: -251672096696114027
|
77
77
|
requirements: []
|
78
78
|
rubyforge_project:
|
79
79
|
rubygems_version: 1.8.23
|