Sha256: 9fd58bc51209ec881994193f2b26b49a9ebb8c7ac3f7c031e7a54079dcacbcf4

Contents?: true

Size: 639 Bytes

Versions: 3

Compression:

Stored size: 639 Bytes

Contents

# Intialize the gem by including some extension to ActiveRecord::Base
require File.dirname(__FILE__) + '/has_setting/ar_extensions'
require File.dirname(__FILE__) + '/has_setting/formatters'
require File.dirname(__FILE__) + '/has_setting/setting'
ActiveRecord::Base.class_eval do
  include(HasSetting::InstanceMethods)
  extend(HasSetting::ClassMethods)
end


HasSetting::Formatters.register_formatter(:string, HasSetting::Formatters::StringFormatter.new)
HasSetting::Formatters.register_formatter(:float, HasSetting::Formatters::FloatFormatter.new)
HasSetting::Formatters.register_formatter(:int, HasSetting::Formatters::IntFormatter.new)

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
simplificator-has_setting-0.3.6 lib/has_setting.rb
simplificator-has_setting-0.3.7 lib/has_setting.rb
simplificator-has_setting-0.3.8 lib/has_setting.rb