Sha256: ca35ae58319eba83f005dec4f82fc62551aaf2aae7c545f4214578a3c8a0a111

Contents?: true

Size: 730 Bytes

Versions: 2

Compression:

Stored size: 730 Bytes

Contents

require 'comfy_carousel'
require 'rails'

module ComfyCarousel
  class Engine < Rails::Engine
    initializer 'comfy_carousel.configuration' do |app|
      if defined?(ComfortableMexicanSofa)
        # Applying configuraion
        ComfyCarousel.configure do |conf|
          conf.admin_route_prefix = ComfortableMexicanSofa.config.admin_route_prefix
          conf.admin_controller   = 'CmsAdmin::BaseController'
          conf.form_builder       = 'ComfortableMexicanSofa::FormBuilder'
          conf.upload_options     = ComfortableMexicanSofa.config.upload_file_options
        end
        # Adding view hooks
        ComfortableMexicanSofa::ViewHooks.add(:navigation, '/admin/carousel/navigation')
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
comfy_carousel-0.0.3 lib/comfy_carousel/engine.rb
comfy_carousel-0.0.2 lib/comfy_carousel/engine.rb