Sha256: 1fd826ed1a088b2fb00ede3aed790adf62071932c4161fa2e972e3b70deb081d

Contents?: true

Size: 644 Bytes

Versions: 1

Compression:

Stored size: 644 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'
        end
        # Adding view hooks
        ComfortableMexicanSofa::ViewHooks.add(:navigation, '/admin/carousel/navigation')
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
comfy_carousel-0.0.1 lib/comfy_carousel/engine.rb