Sha256: 5fec001113ab6178bb904bc53d8af1fbf87ede7fed9e1d48d6f8e06705c1932a

Contents?: true

Size: 424 Bytes

Versions: 2

Compression:

Stored size: 424 Bytes

Contents

module TimeMachine
  class Engine < ::Rails::Engine
    isolate_namespace TimeMachine

    config.to_prepare do
      ::ApplicationController.helper(TimeMachine::ApplicationHelper)
    end

    config.after_initialize do |app|
      app.routes.append do
        get '/time_machine/reset' => 'time_machine/application#reset'
        get '/time_machine/:date' => 'time_machine/application#travel'
      end
    end

  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
time_machine-0.0.2 lib/time_machine/engine.rb
time_machine-0.0.1 lib/time_machine/engine.rb