Sha256: d790e3f1e81659b10642ec6b49d5835e82f6c9c29dc192eba132fdfa02b59d9f

Contents?: true

Size: 669 Bytes

Versions: 7

Compression:

Stored size: 669 Bytes

Contents

module LatoCore
  class Engine < ::Rails::Engine
    isolate_namespace LatoCore

    require 'rubygems'
    require 'sass-rails'
    require 'uglifier'
    require 'jquery-rails'
    require 'cells'
    require 'cells-erb'
    require 'bcrypt'
    require 'jwt'

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

     # add helpers support
    initializer 'Add helpers to application' do
      ActiveSupport.on_load :action_controller do
        helper LatoCore::Helper
      end
    end

  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
lato_core-2.2.2 lib/lato_core/engine.rb
lato_core-2.2.0 lib/lato_core/engine.rb
lato_core-2.1.4 lib/lato_core/engine.rb
lato_core-2.1.3 lib/lato_core/engine.rb
lato_core-2.1.2 lib/lato_core/engine.rb
lato_core-2.1.1 lib/lato_core/engine.rb
lato_core-2.1 lib/lato_core/engine.rb