lib/mail_engine/engine.rb in mail_engine-0.1.12 vs lib/mail_engine/engine.rb in mail_engine-0.1.13

- old
+ new

@@ -40,17 +40,11 @@ require 'mail_engine/generators/copy_migrations.rb' end config.to_prepare do # load config - MailEngine::Configuration.load + MailEngine::Configuration.load_and_check - # don't process config file if not fine it. - if MailEngine::Base.current_config.present? - raise "Please add :user_class_name config into mail_engine_config.yml." if MailEngine::Base.current_config["user_class_name"].blank? - MailEngine::USER_MODEL = MailEngine::Base.current_config["user_class_name"].constantize unless defined?(MailEngine::USER_MODEL) - else - puts "\e[1;31;40m[Mail Engine Warning]\e[0m Not found mail_engine_config.yml, so mail_engine won't be able to work." - end + MailEngine::USER_MODEL = MailEngine::Base.current_config["user_class_name"].constantize unless defined?(MailEngine::USER_MODEL) end end end \ No newline at end of file