Sha256: b61fcfa002579ef4cc5236a5b2e52b0afee852a927be66047ee00283b3878d7c
Contents?: true
Size: 503 Bytes
Versions: 1
Compression:
Stored size: 503 Bytes
Contents
require 'rails/railtie' module ModelTransporter class Railtie < Rails::Railtie initializer "model_transporter.batch_model_updates.setup" do |app| ActiveSupport.on_load(:action_controller) do ActionController::Base.send(:include, ControllerAdditions) end end initializer "model_transporter.notifies_model_updates.setup" do |app| ActiveSupport.on_load(:active_record) do ActiveRecord::Base.send(:include, NotifiesModelUpdates) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
model_transporter-0.1.0 | lib/model_transporter/railtie.rb |