Sha256: aca329b5e67f40ef3b07b7e2691f724b75132c782ae8ee553ee4121a4314cdfe

Contents?: true

Size: 347 Bytes

Versions: 6

Compression:

Stored size: 347 Bytes

Contents

require 'schedule_attributes/active_record'

module ScheduleAttributes
  class Railtie < Rails::Railtie
    initializer "active_record.initialize_schedule_attributes" do
      ActiveSupport.on_load(:active_record) do
        class ActiveRecord::Base
          extend ScheduleAttributes::ActiveRecord::Sugar
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
dgp-schedule_attributes-0.5.3 lib/schedule_attributes/railtie.rb
dgp-schedule_attributes-0.5.2 lib/schedule_attributes/railtie.rb
dgp-schedule_attributes-0.5.1 lib/schedule_attributes/railtie.rb
dgp-schedule_attributes-0.5.0 lib/schedule_attributes/railtie.rb
dgp-schedule_attributes-0.4.0 lib/schedule_attributes/railtie.rb
schedule_attributes-0.3.0 lib/schedule_attributes/railtie.rb