Sha256: 86aa18456471b67ee68f04101e8e29c8fce549c4f5781df56e2ce1564d121e44

Contents?: true

Size: 335 Bytes

Versions: 2

Compression:

Stored size: 335 Bytes

Contents

require 'attribute_ext/hidden_attributes'
require 'attribute_ext/safe_attributes'
require 'attribute_ext/railtie' if defined?(Rails)

module AttributeExt
  def AttributeExt.setup # :nodoc:
    ActiveRecord::Base.send :include, AttributeExt::HiddenAttributes
    ActiveRecord::Base.send :include, AttributeExt::SafeAttributes
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
attribute_ext-1.3.0 lib/attribute_ext.rb
attribute_ext-1.2.4 lib/attribute_ext.rb