lib/translatable_routes/railtie.rb in translatable_routes-1.2.0 vs lib/translatable_routes/railtie.rb in translatable_routes-1.3.0

- old
+ new

@@ -1,14 +1,10 @@ module TranslatableRoutes class Railtie < Rails::Railtie - config.translatable_routes = ActiveSupport::OrderedOptions.new - config.translatable_routes.selection = :prefix - initializer 'translatable_routes' do - ::ActionDispatch::Routing::Mapper.send :include, TranslatableRoutes::ActionDispatch::Mapper ::ActionDispatch::Routing::RouteSet::NamedRouteCollection.send :include, TranslatableRoutes::ActionDispatch::NamedRouteCollection - ::ActionController::Base.send :include, TranslatableRoutes::ActionController::Base + ::ActionDispatch::Routing::Mapper.send :include, TranslatableRoutes::ActionDispatch::Mapper end - + end end