Sha256: f239dd508c2af6168e7c5c73040cdd6b3d84b789acb2c5505eb03049fed0d9c7

Contents?: true

Size: 612 Bytes

Versions: 1

Compression:

Stored size: 612 Bytes

Contents

module <%= class_name %>
  class Engine < ::Rails::Engine
    isolate_namespace <%= class_name %>

    config.view_paths = [<%= class_name %>::Engine.root.join('app', 'views', '<%= singular_name %>')]

    config.eager_load_paths += [<%= class_name %>::Engine.root.join('app', 'drappers')]
    config.eager_load_paths += [<%= class_name %>::Engine.root.join('app', 'drappers', 'concerns')]

    config.i18n.load_path += Dir[<%= class_name %>::Engine.root.join('config', 'locales', '**', '*.yml')]
    config.i18n.load_path += Dir[<%= class_name %>::Engine.root.join('config', 'locales', '**', '*.rb')]
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
billet-0.0.1 lib/generators/billet/namespace/templates/lib/engine.rb.erb