Module: SanitizeAttributes::ClassMethods

Defined in:
lib/sanitize_attributes/class_methods.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#default_sanitization_method_for_classObject

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_attributesObject

: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