reaction 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/reaction/action.rb +3 -1
- data/reaction.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e9a60d89e61486f6efad35627c71414e6d928e31
|
4
|
+
data.tar.gz: b54420b3e1f347d7ce9311c33863f0470df8c6cb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5a1efc95c948da004d4bac324554efa5dd19282c3b324f3c288db0391b92fd28a004de3c77513a9aa00cad900825d0a23d0dc4ea3f4333a9bea209cc60b5d7f5
|
7
|
+
data.tar.gz: 61324a1ffb2456472c6d60c22027c811072d1e869981dd1889c6a63d8e6dd81698ede48d770fea6fef459d2a18b50e25752c30489786b51e5b05af397e0e9aa5
|
data/lib/reaction/action.rb
CHANGED
@@ -57,8 +57,10 @@ module Reaction
|
|
57
57
|
end
|
58
58
|
|
59
59
|
def set_params(param_values = {})
|
60
|
+
provided_keys = param_values.keys.map(&:to_sym)
|
61
|
+
|
60
62
|
self.class.param_builders.each do |name, pb|
|
61
|
-
provided =
|
63
|
+
provided = provided_keys.include?(name)
|
62
64
|
_params[name] = pb.build(self, param_values[name], provided)
|
63
65
|
end
|
64
66
|
end
|
data/reaction.gemspec
CHANGED
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |gem|
|
6
6
|
gem.name = 'reaction'
|
7
|
-
gem.version = '1.0.
|
7
|
+
gem.version = '1.0.3'
|
8
8
|
gem.authors = ["Jon Calhoun", "Jon Calhoun", "Ryan Jackson"]
|
9
9
|
gem.email = ["joncalhoun@gmail.com", "jon@paidlabs.com", "ryan@paidlabs.com"]
|
10
10
|
gem.description = 'Reaction makes it easy to build reusable controller actions along with reusable validators and param type converters.'
|