Sha256: 8892b493f1ea93a775ad402e1bd25f77b2a42615ba1c35f8e48741a291a20d4f

Contents?: true

Size: 359 Bytes

Versions: 17

Compression:

Stored size: 359 Bytes

Contents

module CronoTrigger
  class Railtie < ::Rails::Railtie
    config.after_initialize do
      CronoTrigger.reloader = CronoTrigger::Railtie::Reloader.new
    end

    class Reloader
      def initialize(app = ::Rails.application)
        @app = app
      end

      def call
        @app.reloader.wrap do
          yield
        end
      end
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
crono_trigger-0.8.3 lib/crono_trigger/railtie.rb
crono_trigger-0.8.1 lib/crono_trigger/railtie.rb
crono_trigger-0.8.0 lib/crono_trigger/railtie.rb
crono_trigger-0.7.1 lib/crono_trigger/railtie.rb
crono_trigger-0.7.0 lib/crono_trigger/railtie.rb
crono_trigger-0.6.4 lib/crono_trigger/railtie.rb
crono_trigger-0.6.3 lib/crono_trigger/railtie.rb
crono_trigger-0.6.2 lib/crono_trigger/railtie.rb
crono_trigger-0.6.1 lib/crono_trigger/railtie.rb
crono_trigger-0.6.0 lib/crono_trigger/railtie.rb
crono_trigger-0.5.4 lib/crono_trigger/railtie.rb
crono_trigger-0.5.3 lib/crono_trigger/railtie.rb
crono_trigger-0.5.2 lib/crono_trigger/railtie.rb
crono_trigger-0.5.1 lib/crono_trigger/railtie.rb
crono_trigger-0.5.0 lib/crono_trigger/railtie.rb
crono_trigger-0.4.0 lib/crono_trigger/railtie.rb
crono_trigger-0.3.4 lib/crono_trigger/railtie.rb