Sha256: bc6a24ffc946c79d40d0caf12aefa905edb80d1f1b294d17432ccc3752c7f59b
Contents?: true
Size: 960 Bytes
Versions: 3
Compression:
Stored size: 960 Bytes
Contents
module Enjoy::Feedback class Engine < ::Rails::Engine # isolate_namespace Enjoy::Feedback # rake_tasks do # require File.expand_path('../tasks', __FILE__) # end initializer "enjoy_cms_feedback.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 config.after_initialize do # 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: 'с сайта') end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
enjoy_cms_feedback-0.4.1 | lib/enjoy/feedback/engine.rb |
enjoy_cms_feedback-0.4.0 | lib/enjoy/feedback/engine.rb |
enjoy_cms_feedback-0.4.0.beta3 | lib/enjoy/feedback/engine.rb |