Sha256: fb9f1d8dc8011012746b6b690cae1c424762afb146bf1227dd16c716a06a1256

Contents?: true

Size: 764 Bytes

Versions: 9

Compression:

Stored size: 764 Bytes

Contents

module EffectiveEmailTemplates
  class Engine < ::Rails::Engine
    engine_name 'effective_email_templates'

    config.autoload_paths += Dir["#{config.root}/lib/validators/"]
    config.eager_load_paths += Dir["#{config.root}/lib/validators/"]

    # Set up our default configuration options.
    initializer 'effective_email_templates.defaults', before: :load_config_initializers do |app|
      eval File.read("#{config.root}/config/effective_email_templates.rb")
    end

    # Include has_one_email_review concern and allow any ActiveRecord object to call it
    initializer 'effective_email_templates.active_record' do |app|
      ActiveSupport.on_load :active_record do
        ActiveRecord::Base.extend(HasOneEmailReview::Base)
      end
    end

  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
effective_email_templates-1.2.1 lib/effective_email_templates/engine.rb
effective_email_templates-1.2.0 lib/effective_email_templates/engine.rb
effective_email_templates-1.1.4 lib/effective_email_templates/engine.rb
effective_email_templates-1.1.3 lib/effective_email_templates/engine.rb
effective_email_templates-1.1.2 lib/effective_email_templates/engine.rb
effective_email_templates-1.1.1 lib/effective_email_templates/engine.rb
effective_email_templates-1.1.0 lib/effective_email_templates/engine.rb
effective_email_templates-1.0.13 lib/effective_email_templates/engine.rb
effective_email_templates-1.0.12 lib/effective_email_templates/engine.rb