Sha256: 7cf2acea62c2001963e3271900c514a73d0547d34bc61945b4396fe5e527c360

Contents?: true

Size: 503 Bytes

Versions: 1

Compression:

Stored size: 503 Bytes

Contents

require 'diffy'

module ForemanTemplates
  #Inherit from the Rails module of the parent app (Foreman), not the plugin.
  #Thus, inhereits from ::Rails::Engine and not from Rails::Engine
  class Engine < ::Rails::Engine

    initializer 'foreman_templates.register_plugin', :after=> :finisher_hook do |app|
      Foreman::Plugin.register :foreman_templates do
      end if (Rails.env == "development" or defined? Foreman::Plugin)
    end

    rake_tasks do
      load "templates.rake"
    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
foreman_templates-1.4.0 lib/foreman_templates/engine.rb