Module: SanitizeAttributes::ClassMethods
- Defined in:
- lib/sanitize_attributes/class_methods.rb
Instance Attribute Summary collapse
-
#default_sanitization_method_for_class ⇒ Object
Returns the value of attribute default_sanitization_method_for_class.
Instance Method Summary collapse
-
#sanitizable_attributes ⇒ Object
:nodoc:.
-
#sanitization_method_for_attribute(attribute) ⇒ Object
:nodoc:.
Instance Attribute Details
#default_sanitization_method_for_class ⇒ Object
Returns the value of attribute default_sanitization_method_for_class.
4 5 6 |
# File 'lib/sanitize_attributes/class_methods.rb', line 4 def default_sanitization_method_for_class @default_sanitization_method_for_class end |
Instance Method Details
#sanitizable_attributes ⇒ Object
:nodoc:
6 7 8 |
# File 'lib/sanitize_attributes/class_methods.rb', line 6 def sanitizable_attributes #:nodoc: self.sanitizable_attribute_hash.keys end |
#sanitization_method_for_attribute(attribute) ⇒ Object
:nodoc:
10 11 12 13 |
# File 'lib/sanitize_attributes/class_methods.rb', line 10 def sanitization_method_for_attribute(attribute) #:nodoc: index = self.sanitizable_attribute_hash[attribute] self.sanitization_block_array[index] if index end |