Nicolas Bally 0b9daf14b2 migration
2020-03-19 00:53:22 +01:00

19 lines
292 B
Ruby

require 'rails'
require 'acts_as_sorting'
p "Railtie loaded"
begin
module ActsAsSorting
class Railtie < Rails::Railtie
config.to_prepare do
p "hook sorting added"
ActiveRecord::Base.send(:extend, ActsAsSorting::Hook)
end
end
end
rescue
p $!, $!.message
raise $!
end