Sha256: 938612cc147f31f9b2a84ab0f0104b6492c7c89118f33c007d664a7149f562e4

Contents?: true

Size: 794 Bytes

Versions: 9

Compression:

Stored size: 794 Bytes

Contents

require "<%= namespaced_name %>/configuration"

<%= wrap_in_modules <<-rb.strip_heredoc
  class Engine < ::Rails::Engine
  #{mountable? ? '  isolate_namespace ' + camelized_modules : ' '}
  #{api? ? "  config.generators.api_only = true" : ' '}
    # Initialize engine dependencies on wrapper application
    Gem.loaded_specs["#{ name }"].dependencies.each do |d|
      begin
        require d.name
      rescue LoadError => e
        # Put exceptions here.
      end
    end


    # Uncomment if migrations need to be shared
    # initializer :append_migrations do |app|
    #   unless app.root.to_s.match root.to_s
    #     config.paths["db/migrate"].expanded.each do |expanded_path|
    #       app.config.paths["db/migrate"] << expanded_path
    #     end
    #   end
    # end
  end
rb
%>

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
pluginizer-0.1.7 templates/lib/%namespaced_name%/engine.rb.tt
pluginizer-0.1.6 templates/lib/%namespaced_name%/engine.rb.tt
pluginizer-0.1.5 templates/lib/%namespaced_name%/engine.rb.tt
pluginizer-0.1.4 templates/lib/%namespaced_name%/engine.rb.tt
pluginizer-0.1.3 templates/lib/%namespaced_name%/engine.rb.tt
pluginizer-0.1.2 templates/lib/%namespaced_name%/engine.rb.tt
pluginizer-0.1.1 templates/lib/%namespaced_name%/engine.rb.tt
pluginizer-0.1.0 templates/lib/%namespaced_name%/engine.rb.tt
pluginizer-0.0.10 templates/lib/%namespaced_name%/engine.rb.tt