require 'dragonfly'
require 'rack/cache'
require 'refinerycms-core'
require File.expand_path('../generators/images_generator', __FILE__)

module Refinery
  module Images
    autoload :Dragonfly, 'refinery/images/dragonfly'
    autoload :Validators, 'refinery/images/validators'
    autoload :Options, 'refinery/images/options'

    class << self
      attr_accessor :root
      def root
        @root ||= Pathname.new(File.expand_path('../../', __FILE__))
      end
    end
  end
end

require 'refinery/images/engine'
::Refinery.engines << 'dashboard'

require 'dragonfly'
require 'rack/cache'
require 'refinerycms-core'
require File.expand_path('../generators/images_generator', __FILE__)

module Refinery
  module Images
    autoload :Dragonfly, 'refinery/images/dragonfly'
    autoload :Validators, 'refinery/images/validators'
    autoload :Options, 'refinery/images/options'

    class << self
      attr_accessor :root
      def root
        @root ||= Pathname.new(File.expand_path('../../', __FILE__))
      end
    end
  end
end

require 'refinery/images/engine'
::Refinery.engines << 'images'

Fix images being added as dashboard to Refinery.engines
Fix images being added as dashboard to Refinery.engines
