Sha256: 52d9a5ca8a80a4bfd6df9cf32716e0de28ac6c95976cb38f1978e09a187648a2
Contents?: true
Size: 1.75 KB
Versions: 1
Compression:
Stored size: 1.75 KB
Contents
module Hancock class Engine < ::Rails::Engine # isolate_namespace Hancock # rake_tasks do # require File.expand_path('../tasks', __FILE__) # end initializer "RailsAdminSettingsPatch (CMS)" do ::RailsAdminSettings::Setting.send(:include, Hancock::RailsAdminSettingsPatch) end initializer "hancock_cms.email_defaults" do # Write default email settings to DB so they can be changed. #temp begin if Settings and Settings.table_exists? # Settings.default_email_from(default: 'noreply@site.domain') # Settings.form_email(default: 'admin@site.domain') # Settings.email_topic(default: 'с сайта') Settings.logo_image(kind: :image) end rescue end end # initializer 'hancock_cms.paperclip' do # # require 'paperclip/style' # # module ::Paperclip # # class Style # # alias_method :processor_options_without_auto_orient, :processor_options # # def processor_options # # processor_options_without_auto_orient.merge(auto_orient: false) # # end # # end # # end # end # config.after_initialize do # # trigger autoload so models are registered in Mongoid::Elasticearch # # Hancock.config.search_models.map(&:constantize) # # # Write default email settings to DB so they can be changed. # begin # if Settings and Settings.table_exists? # # Settings.default_email_from(default: 'noreply@site.domain') # # Settings.form_email(default: 'admin@site.domain') # # Settings.email_topic(default: 'с сайта') # Settings.logo_image(kind: :image) # end # rescue # end # end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
hancock_cms-1.0.1 | lib/hancock/engine.rb |