Sha256: 32d9c8df6505fb78f0066939506400e0969f2eb712221f4e9be5f56fc6f1470d
Contents?: true
Size: 465 Bytes
Versions: 1
Compression:
Stored size: 465 Bytes
Contents
require "normalizer_jp/version" require "normalizer_jp/normalize_builder" require "active_support/concern" begin # byebug is only installed on development require 'byebug' rescue LoadError end module NormalizerJp extend ActiveSupport::Concern module ClassMethods def mount_normalizer(attribute, normalizer) prepend NormalizerBuilder.new(attribute, normalizer) end end end require 'active_record' ActiveRecord::Base.include(NormalizerJp)
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
normalizer_jp-0.1.0 | lib/normalizer_jp.rb |