Sha256: 79c91b8cb6a900865c2acb8f8136e5f099ed4133648a81bd363afa6bc8aa8bc9

Contents?: true

Size: 557 Bytes

Versions: 28

Compression:

Stored size: 557 Bytes

Contents

require 'refinerycms-core'

module Refinery
  autoload :<%= extension_plural_class_name %>Generator, 'generators/refinery/<%= extension_plural_name %>_generator'

  module <%= class_name.pluralize %><%= 'Engine' if plural_name == singular_name %>
    require 'refinery/<%= plural_name %>/engine'

    class << self
      attr_writer :root

      def root
        @root ||= Pathname.new(File.expand_path('../../../', __FILE__))
      end

      def factory_paths
        @factory_paths ||= [ root.join('spec', 'factories').to_s ]
      end
    end
  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
refinerycms-core-4.0.3 lib/generators/refinery/engine/templates/lib/refinery/plural_name.rb.erb
refinerycms-core-4.0.2 lib/generators/refinery/engine/templates/lib/refinery/plural_name.rb.erb
refinerycms-core-4.0.1 lib/generators/refinery/engine/templates/lib/refinery/plural_name.rb.erb
refinerycms-core-3.0.6 lib/generators/refinery/engine/templates/lib/refinery/plural_name.rb.erb
refinerycms-core-4.0.0 lib/generators/refinery/engine/templates/lib/refinery/plural_name.rb.erb
refinerycms-core-3.0.5 lib/generators/refinery/engine/templates/lib/refinery/plural_name.rb.erb
refinerycms-core-3.0.4 lib/generators/refinery/engine/templates/lib/refinery/plural_name.rb.erb
refinerycms-core-3.0.3 lib/generators/refinery/engine/templates/lib/refinery/plural_name.rb.erb
refinerycms-core-3.0.2 lib/generators/refinery/engine/templates/lib/refinery/plural_name.rb.erb
refinerycms-core-3.0.1 lib/generators/refinery/engine/templates/lib/refinery/plural_name.rb.erb
refinerycms-core-3.0.0 lib/generators/refinery/engine/templates/lib/refinery/plural_name.rb.erb
refinerycms-core-2.1.5 lib/generators/refinery/engine/templates/lib/refinery/plural_name.rb.erb
refinerycms-core-2.1.4 lib/generators/refinery/engine/templates/lib/refinery/plural_name.rb.erb
refinerycms-core-2.1.3 lib/generators/refinery/engine/templates/lib/refinery/plural_name.rb.erb
refinerycms-core-2.1.2 lib/generators/refinery/engine/templates/lib/refinery/plural_name.rb.erb
refinerycms-core-2.1.1 lib/generators/refinery/engine/templates/lib/refinery/plural_name.rb.erb
refinerycms-core-2.1.0 lib/generators/refinery/engine/templates/lib/refinery/plural_name.rb.erb
refinerycms-core-2.0.10 lib/generators/refinery/engine/templates/lib/refinery/plural_name.rb.erb
refinerycms-core-2.0.9 lib/generators/refinery/engine/templates/lib/refinery/plural_name.rb.erb
refinerycms-core-2.0.8 lib/generators/refinery/engine/templates/lib/refinery/plural_name.rb.erb