Sha256: 1e8535c3f430fe5294fbe5851a15181ef69b0ff6de3f2cac3e4e241b3c8273ff

Contents?: true

Size: 749 Bytes

Versions: 11

Compression:

Stored size: 749 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|
      app.config.to_prepare do
        ActiveRecord::Base.extend(HasOneEmailReview::Base)
      end
    end

  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
effective_email_templates-1.9.0 lib/effective_email_templates/engine.rb
effective_email_templates-1.8.0 lib/effective_email_templates/engine.rb
effective_email_templates-1.7.0 lib/effective_email_templates/engine.rb
effective_email_templates-1.6.0 lib/effective_email_templates/engine.rb
effective_email_templates-1.5.1 lib/effective_email_templates/engine.rb
effective_email_templates-1.5.0 lib/effective_email_templates/engine.rb
effective_email_templates-1.4.1 lib/effective_email_templates/engine.rb
effective_email_templates-1.4.0 lib/effective_email_templates/engine.rb
effective_email_templates-1.3.0 lib/effective_email_templates/engine.rb
effective_email_templates-1.2.3 lib/effective_email_templates/engine.rb
effective_email_templates-1.2.2 lib/effective_email_templates/engine.rb