Sha256: ac52a779e502dcdc8bc5dc865a81a18d53364fbd9f5ac8dd55dd4008be0cbaf0
Contents?: true
Size: 828 Bytes
Versions: 2
Compression:
Stored size: 828 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') ComfortableMexicanSofa::ViewHooks.add(:html_head, '/admin/gallery/html_head') end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
comfy_gallery-0.1.1 | lib/comfy_gallery/engine.rb |
comfy_gallery-0.1.0 | lib/comfy_gallery/engine.rb |