Sha256: f90331972fa0b4e463fabf99cf82c91b592c725ee4fa36d63d57afa93fa5c2c2
Contents?: true
Size: 444 Bytes
Versions: 2
Compression:
Stored size: 444 Bytes
Contents
require 'attribute_ext/hidden_attributes' require 'attribute_ext/safe_attributes' require 'attribute_ext/railtie' if defined?(Rails) module AttributeExt def self.setup # :nodoc: ActiveRecord::Base.send :include, AttributeExt::HiddenAttributes ActiveRecord::Base.send :include, AttributeExt::SafeAttributes end def self.activemodel_3_0? ::ActiveModel::VERSION::MAJOR == 3 and ::ActiveModel::VERSION::MINOR == 0 end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
attribute_ext-1.4.1 | lib/attribute_ext.rb |
attribute_ext-1.4.0 | lib/attribute_ext.rb |