Sha256: 471baaa4f78e34224e6a59e0b273cb053b70c0ca3684fb3040dd6356005e171d

Contents?: true

Size: 742 Bytes

Versions: 2

Compression:

Stored size: 742 Bytes

Contents

require 'comfy_gallery'
require 'rails'
require 'paperclip'

module ComfyGallery
  class Engine < Rails::Engine
    initializer 'comfy_gallery.helper' do |app|
      if defined?(ComfortableMexicanSofa)
        # applying configuraion
        ComfyGallery.configure do |conf|
          conf.admin_route_prefix = ComfortableMexicanSofa.config.admin_route_prefix
          conf.upload_options     = ComfortableMexicanSofa.config.upload_file_options
          conf.admin_controller   = 'CmsAdmin::BaseController'
          conf.form_builder       = 'ComfortableMexicanSofa::FormBuilder'
        end
        # applying nav elements
        ComfortableMexicanSofa::ViewHooks.add(:navigation, '/admin/gallery/navigation')
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
comfy_gallery-0.1.3 lib/comfy_gallery/engine.rb
comfy_gallery-0.1.2 lib/comfy_gallery/engine.rb