cyrax 0.5.1.beta3 → 0.5.1.beta4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZTkyMDllMTAxNmM4NjU4YjkxZmJjYmVmN2RiNzVhNzhkN2UyZjMwYQ==
4
+ ZjZiMTcyNTZiNGQwMTlmOTVjZjc3YjkxZTU4YzRkN2NkMGEyMTA2Ng==
5
5
  data.tar.gz: !binary |-
6
- YTg2ZmRlYzljNmI5OGU3OTMwZTlhNmZkMTQxNDc4NDEyNTYxOWZlNA==
6
+ OGVkZmYzZmFjOTY4YjgyMjMwM2Y5MzhkNDkxZWVhYTA2MjVhM2ViNw==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- YjNjYmNmOGQwNGM1OWYxZTJhYzJjYTA0NjVmZDQ2MzE5NTcxZjRhNGUxNDIw
10
- ZWY1MzRlNmEzYzQ0OWYzYWVhNjQ0MjdhNDU3Y2VkMjdiYzhmMDVkY2U1ZmZh
11
- Mzc0YjI0NmI3YTE2ZmEwODZmNDU3NzY0ZDY4N2FkNDAxM2YzY2I=
9
+ OWJjNzJlODk1Y2FlOWViN2E5ZGM5NmU3N2UzZTlhMjc0MzVhODc5NDZlZDA0
10
+ NDUwNmFjMWU1ODJlN2M1ZDg3OTQxZDY1Y2UzNTZjOWJlNmQzNTU2YmE5YWMx
11
+ MzIwYmEzMjRiZTcxZWFlODBjYTIyMTk5ZmRiOTY2MzA2ZWZjN2Q=
12
12
  data.tar.gz: !binary |-
13
- YjkzZTY4NTdlOThlYzA1NmEwN2RjNzEyYWI5YmI4MzM5NzU5ZmUxNmYxNjJh
14
- MTc2ZDU0MTAzOTM3OGE4NmQ5Zjg0OWNmYTcxNGQ0MjBiN2I4YjJkM2NhNGQ3
15
- NzY0NTAwOGI0M2RjODgwY2NmYzUxNGM4N2EwNjc3MjM4ZDk0MmM=
13
+ YmQ4YjJjNzU2ODY3Yzg1ZjNkN2ViMDg4M2MyY2RhODkxMjkxMWM3N2RiMzA2
14
+ NDNiODQzMGU0MmU5NmMzYTJhOTcyMTFmMDhhMDUzMmNhNzc5YjcyNTgzZGI5
15
+ MTU2YzQxM2RlMWE0YTViNDYwZDdkMGI1OTBlNTBlN2UzODlmZGY=
@@ -24,6 +24,11 @@ module Cyrax::Extensions
24
24
  @_assignments[resource_name.to_sym] = resource
25
25
  end
26
26
 
27
+ def assignment(resource_name)
28
+ @_assignments ||= {}
29
+ @_assignments[resource_name]
30
+ end
31
+
27
32
  def add_error_unless(key, value, condition)
28
33
  add_error(key, value) unless condition
29
34
  end
@@ -38,7 +43,7 @@ module Cyrax::Extensions
38
43
 
39
44
  def add_errors_from?(model)
40
45
  model = model.to_model if model.respond_to?(:to_model)
41
- model && model.respond_to?(:errors) &&
46
+ model && model.respond_to?(:errors) &&
42
47
  model.errors.respond_to?(:messages)
43
48
  end
44
49
 
data/lib/cyrax/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Cyrax
2
- VERSION = "0.5.1.beta3"
2
+ VERSION = "0.5.1.beta4"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cyrax
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1.beta3
4
+ version: 0.5.1.beta4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Droidlabs
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-12-05 00:00:00.000000000 Z
11
+ date: 2013-12-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport