Sha256: 82cf948906f63c60bcbe2e047260d5d64434f5c6649f69de26c1a3d9c2edbb1d

Contents?: true

Size: 441 Bytes

Versions: 17

Compression:

Stored size: 441 Bytes

Contents

require 'refinerycms-settings'
require 'refinerycms-core'

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

    class << self
      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

17 entries across 17 versions & 2 rubygems

Version Path
refinerycms-forms-2.0.0 lib/generators/refinery/form/templates/lib/refinery/plural_name.rb.erb
refinerycms-forms-1.0.1 lib/generators/refinery/form/templates/lib/refinery/plural_name.rb.erb
refinerycms-forms-1.0.0 lib/generators/refinery/form/templates/lib/refinery/plural_name.rb.erb
refinerycms-core-2.1.5 lib/generators/refinery/form/templates/lib/refinery/plural_name.rb.erb
refinerycms-core-2.1.4 lib/generators/refinery/form/templates/lib/refinery/plural_name.rb.erb
refinerycms-core-2.1.3 lib/generators/refinery/form/templates/lib/refinery/plural_name.rb.erb
refinerycms-core-2.1.2 lib/generators/refinery/form/templates/lib/refinery/plural_name.rb.erb
refinerycms-core-2.1.1 lib/generators/refinery/form/templates/lib/refinery/plural_name.rb.erb
refinerycms-core-2.1.0 lib/generators/refinery/form/templates/lib/refinery/plural_name.rb.erb
refinerycms-core-2.0.10 lib/generators/refinery/form/templates/lib/refinery/plural_name.rb.erb
refinerycms-core-2.0.9 lib/generators/refinery/form/templates/lib/refinery/plural_name.rb.erb
refinerycms-core-2.0.8 lib/generators/refinery/form/templates/lib/refinery/plural_name.rb.erb
refinerycms-core-2.0.7 lib/generators/refinery/form/templates/lib/refinery/plural_name.rb.erb
refinerycms-core-2.0.6 lib/generators/refinery/form/templates/lib/refinery/plural_name.rb.erb
refinerycms-core-2.0.5 lib/generators/refinery/form/templates/lib/refinery/plural_name.rb
refinerycms-core-2.0.4 lib/generators/refinery/form/templates/lib/refinery/plural_name.rb
refinerycms-core-2.0.3 lib/generators/refinery/form/templates/lib/refinery/plural_name.rb