Module: Sequel::Plugins::Sanitize::ClassMethods

Defined in:
lib/sequel_sanitize.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#sanitize_optionsObject

Returns the value of attribute sanitize_options.



27
28
29
# File 'lib/sequel_sanitize.rb', line 27

def sanitize_options
  @sanitize_options
end

Instance Method Details

#inherited(klass) ⇒ Object

Propagate settings to the child classes

Parameters:

  • Child (Class)

    class



30
31
32
33
# File 'lib/sequel_sanitize.rb', line 30

def inherited(klass)
  super
  klass.sanitize_options = self.sanitize_options.dup
end