Sha256: f08cb8412a008d65a5721689be4f611781270d533c2444bbf736600fe421edc2

Contents?: true

Size: 355 Bytes

Versions: 3

Compression:

Stored size: 355 Bytes

Contents

module TranslatableRoutes
  class Railtie < Rails::Railtie

    initializer 'translatable_routes' do
      ::ActionDispatch::Routing::RouteSet::NamedRouteCollection.send :include, TranslatableRoutes::ActionDispatch::NamedRouteCollection
      ::ActionDispatch::Routing::Mapper.send :include, TranslatableRoutes::ActionDispatch::Mapper
    end
 
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
translatable_routes-1.3.3 lib/translatable_routes/railtie.rb
translatable_routes-1.3.2 lib/translatable_routes/railtie.rb
translatable_routes-1.3.0 lib/translatable_routes/railtie.rb