Module: AttrRedactor::Adapters::DataMapper

Defined in:
lib/attr_redactor/adapters/data_mapper.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.extended(base) ⇒ Object

:nodoc:



5
6
7
8
9
10
# File 'lib/attr_redactor/adapters/data_mapper.rb', line 5

def self.extended(base) # :nodoc:
  class << base
    alias_method :included_without_attr_redactor, :included
    alias_method :included, :included_with_attr_redactor
  end
end

Instance Method Details

#included_with_attr_redactor(base) ⇒ Object



12
13
14
15
# File 'lib/attr_redactor/adapters/data_mapper.rb', line 12

def included_with_attr_redactor(base)
  included_without_attr_redactor(base)
  base.extend AttrRedactor
end