Sha256: 47f5a751d832fc0d4119296719d9258c7b477e7c4dfd643d48c7fbc12e58d4ad
Contents?: true
Size: 397 Bytes
Versions: 1
Compression:
Stored size: 397 Bytes
Contents
module NilifyBlanks if defined?(Rails::Railtie) require "rails" class Railtie < Rails::Railtie initializer "nilify_blanks.extend_active_record" do ActiveSupport.on_load(:active_record) do NilifyBlanks::Railtie.insert end end end end class Railtie def self.insert ActiveRecord::Base.send(:include, NilifyBlanks) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
nilify_blanks-1.4.0 | lib/nilify_blanks/railtie.rb |