Sha256: 4baf8698689b1855ff7b0281f44e6171e028de8e8fdb0309d8e3f1200404265b

Contents?: true

Size: 613 Bytes

Versions: 1

Compression:

Stored size: 613 Bytes

Contents

# Fancy value normalization utility for ruby (and rails),
# see {VacuumCleaner::Normalizations} for more information about usage.
#

require 'vacuum_cleaner/normalizer'
require 'vacuum_cleaner/normalizations'

# @see VacuumCleaner::Normalizations
# @see VacuumCleaner::Normalizer
module VacuumCleaner
  # +VacuumCleaner+ version
  VERSION = "1.0.3".freeze
end

if defined?(ActiveSupport) && ActiveSupport.respond_to?(:on_load)
  ActiveSupport.on_load(:active_record) { include VacuumCleaner::Normalizations }
else
  ActiveRecord::Base.send(:include, VacuumCleaner::Normalizations) if defined?(ActiveRecord)  
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
vacuum_cleaner-1.0.3 lib/vacuum_cleaner.rb