Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

19 lines (14 sloc) 0.57 kb
require 'rails/railtie'
module Versionist
class Railtie < Rails::Railtie
config.versionist = ActiveSupport::OrderedOptions.new
initializer 'versionist.configure' do |app|
ActionDispatch::Routing::Mapper.send :include, Versionist::Routing
end
config.app_middleware.use Versionist::Middleware
config.after_initialize do
generators = config.respond_to?(:app_generators) ? config.app_generators : config.generators
Versionist.configuration.configured_test_framework = generators.options[:rails][:test_framework]
end
end
end
Jump to Line
Something went wrong with that request. Please try again.