diff options
author | James Thompson <james.b.thompson@gmail.com> | 2012-03-14 11:40:16 +0200 |
---|---|---|
committer | James Thompson <james.b.thompson@gmail.com> | 2012-03-14 11:40:16 +0200 |
commit | 56d7747f54e86993415b76c92e101608e5ea44e2 (patch) | |
tree | 025b7b37f50c4c291e7e676286e7767c40adb1f9 /lib/refinery/banners.rb | |
download | refinerycms-pc_banners-56d7747f54e86993415b76c92e101608e5ea44e2.tar.gz refinerycms-pc_banners-56d7747f54e86993415b76c92e101608e5ea44e2.tar.bz2 refinerycms-pc_banners-56d7747f54e86993415b76c92e101608e5ea44e2.zip |
initial commit
Diffstat (limited to 'lib/refinery/banners.rb')
-rw-r--r-- | lib/refinery/banners.rb | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/lib/refinery/banners.rb b/lib/refinery/banners.rb new file mode 100644 index 0000000..0004091 --- /dev/null +++ b/lib/refinery/banners.rb @@ -0,0 +1,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 |