aboutsummaryrefslogtreecommitdiffstats
path: root/lib/refinery/banners.rb
blob: 0004091eddc94c0aa3f491dc7802e6c56f1c6cbd (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 :BannersGenerator, 'generators/refinery/banners_generator'

  module Banners
    require 'refinery/banners/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