Sha256: 1e82229e3c8610971144aefb85add991d42f47db46cf9a3dda2be395f5cecd71
Contents?: true
Size: 1.48 KB
Versions: 2
Compression:
Stored size: 1.48 KB
Contents
module Hancock class Engine < ::Rails::Engine # isolate_namespace Hancock # rake_tasks do # require File.expand_path('../tasks', __FILE__) # 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: 'с сайта') # 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. 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 end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
hancock_cms-2.0.0 | lib/hancock/engine.rb |
hancock_cms-1.0.0 | lib/hancock/engine.rb |