Sha256: 6b43da063696010b4ad8a0a195e32f20381ad800d603df53efbccc7c9189ca7a

Contents?: true

Size: 942 Bytes

Versions: 6

Compression:

Stored size: 942 Bytes

Contents

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

    # Include Helpers to base application
    initializer 'effective_email_templates.action_controller' do |app|
      ActiveSupport.on_load :action_controller do
        helper EffectiveEmailTemplatesHelper
      end
    end

    # Include acts_as_email_templatable concern and allow any ActiveRecord object to call it
    initializer 'effective_email_templates.active_record' do |app|
      ActiveSupport.on_load :active_record do
        # If you write a concern at all, it should be registered here
        #ActiveRecord::Base.extend(ActsAsAddressable::ActiveRecord)
      end
    end

    # 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

  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
effective_email_templates-0.4.5 lib/effective_email_templates/engine.rb
effective_email_templates-0.4.4 lib/effective_email_templates/engine.rb
effective_email_templates-0.4.3 lib/effective_email_templates/engine.rb
effective_email_templates-0.4.2 lib/effective_email_templates/engine.rb
effective_email_templates-0.4.1 lib/effective_email_templates/engine.rb
effective_email_templates-0.4.0 lib/effective_email_templates/engine.rb