active_conformity 0.2.14 → 0.2.15

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: b887d6011a6343f3f3e1fc483a3f8d412e9d2dee
4
- data.tar.gz: 405673f04c38f9befc12cb4e1465544ab2a72c27
3
+ metadata.gz: 071f3c54359ec32df8a9b27db0513a0c129cb9fe
4
+ data.tar.gz: f1c3e64afb59ae754d56268463efa25e5fb55046
5
5
  SHA512:
6
- metadata.gz: 1cde6a00f8981dcf2d88804dbfc1b72dec9c51bcb7e73e7f1a137d18e9a3a4b32a564cb326663aa26e2129eba55bd11dab8a0d74c6934ad36223b41069f7ef2e
7
- data.tar.gz: 777988858ef4c4f2ec9c538d6e90f08bedaa23825faa882d8b88a75e0ec30375c7d411344936e7efd18cf998730518b0630c12846461e05eb33777b9ac4e4c83
6
+ metadata.gz: 46f5eb607af67167008f043ae01122e24a5e33776296a2f3d66868c2391cb7def4b01e4637d2bcabe2340a1944e975f3bcfd23523b4ad3301d04d9b7b4345fc1
7
+ data.tar.gz: fbb9b54be3e53c9c81f14cea3ee554f3bc6d1bacabc2692bf25a2726d553280507d545b34e0bbb6e6f63906ff9b8abb8350b5878112f1fb11bd5d872955bea02
data/README.md CHANGED
@@ -117,12 +117,11 @@ diesel_engine.add_conformity_set!( {size: {:numericality => { :greater_than => 9
117
117
  diesel_engine.remove_coformity_rule!(:size)
118
118
 
119
119
  ```
120
- The bang here will run a save!, without the bang the diesel engine will still need to save in order to persist. Additionally, if you want to remove all of the conformity sets for a conformable, you can do the following:
120
+ Additionally, if you want to remove all of the conformity sets for a conformable, you can do the following:
121
121
 
122
122
  ```ruby
123
123
  diesel_engine.remove_rules!
124
124
  ```
125
- Again this method can be used with or without a bang!
126
125
 
127
126
  ##
128
127
  ## Development
@@ -71,6 +71,14 @@ module ActiveConformity
71
71
  .flatten.compact.uniq
72
72
  end
73
73
 
74
+ def remove_conformity_rule!(attr)
75
+ conformable.remove_coformity_rule!(attr)
76
+ end
77
+
78
+ def remove_rules
79
+ conformable.remove_rules!
80
+ end
81
+
74
82
  private
75
83
 
76
84
  def dependents
@@ -1,3 +1,3 @@
1
1
  module ActiveConformity
2
- VERSION = "0.2.14"
2
+ VERSION = "0.2.15"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_conformity
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.14
4
+ version: 0.2.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - dandlezzz