Module: Charwidth::ActiveRecord

Defined in:
lib/charwidth/active_record.rb

Defined Under Namespace

Modules: InstanceMethods

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



12
13
14
15
16
17
18
# File 'lib/charwidth/active_record.rb', line 12

def self.included(base)
  base.class_eval do
    include InstanceMethods
    alias_method :write_attribute_without_normalize_charwidth, :write_attribute
    alias_method :write_attribute, :write_attribute_with_normalize_charwidth
  end
end