Sha256: 022b39225ea93b2feb985eaf04f3f4c78103834bc6696a5eab0c438284685117
Contents?: true
Size: 737 Bytes
Versions: 1
Compression:
Stored size: 737 Bytes
Contents
require 'sofa_gallery' require 'rails' require 'paperclip' module CmsGallery class Engine < Rails::Engine initializer 'sofa_gallery.helper' do |app| if defined?(ComfortableMexicanSofa) # applying configuraion SofaGallery.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, '/gallery_admin/navigation') end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sofa_gallery-0.0.0 | lib/sofa_gallery/engine.rb |