aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/extensions/gallery_links/lib/refinery/gallery_links.rb
blob: cf8dcee229ab9fd117201666cd198ee9bd1196d0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
require 'refinerycms-core'

module Refinery
  autoload :GalleryLinksGenerator, 'generators/refinery/gallery_links_generator'

  module GalleryLinks
    require 'refinery/gallery_links/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