thumblemonks-inquisition 0.1.4 → 0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/LICENSE +1 -1
- data/lib/inquisition.rb +5 -5
- data/test/models.rb +1 -1
- metadata +2 -2
data/LICENSE
CHANGED
data/lib/inquisition.rb
CHANGED
@@ -11,12 +11,12 @@ module Inquisition
|
|
11
11
|
end
|
12
12
|
|
13
13
|
module ClassMethods
|
14
|
-
def
|
15
|
-
|
16
|
-
|
14
|
+
def sanitize_attribute(*attributes)
|
15
|
+
sanitize_attribute_reader(*attributes)
|
16
|
+
sanitize_attribute_writer(*attributes)
|
17
17
|
end
|
18
18
|
|
19
|
-
def
|
19
|
+
def sanitize_attribute_reader(*attributes)
|
20
20
|
write_inheritable_attribute(:cleansed_attr_readers, attributes)
|
21
21
|
class_inheritable_reader(:cleansed_attr_readers)
|
22
22
|
|
@@ -33,7 +33,7 @@ module Inquisition
|
|
33
33
|
attributes.each { |attr| define_method(attr.to_sym) { read_attribute(attr.to_sym) } }
|
34
34
|
end
|
35
35
|
|
36
|
-
def
|
36
|
+
def sanitize_attribute_writer(*attributes)
|
37
37
|
write_inheritable_attribute(:cleansed_attr_writers, attributes)
|
38
38
|
class_inheritable_reader(:cleansed_attr_writers)
|
39
39
|
|
data/test/models.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: thumblemonks-inquisition
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: "0.2"
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- toothrot
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-
|
12
|
+
date: 2009-07-06 00:00:00 -07:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|