Sha256: 69d533037ea38f6c2de01c9c0cc27d75fb50ca3f8526b7c3a36c4b491c25df35

Contents?: true

Size: 335 Bytes

Versions: 6

Compression:

Stored size: 335 Bytes

Contents

module LatoBlog
  class Engine < ::Rails::Engine
    isolate_namespace LatoBlog

    require 'rubygems'

    # add routes support
    initializer 'Add gem routes to application', before: :load_config_initializers do
      Rails.application.routes.append do
        mount LatoBlog::Engine, at: '/lato/blog'
      end
    end

  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
lato_blog-2.2.2 lib/lato_blog/engine.rb
lato_blog-2.2.1 lib/lato_blog/engine.rb
lato_blog-2.2.0 lib/lato_blog/engine.rb
lato_blog-2.1.2 lib/lato_blog/engine.rb
lato_blog-2.1.1 lib/lato_blog/engine.rb
lato_blog-2.1 lib/lato_blog/engine.rb