Sha256: b040272da745c4ed832096b6b6ca1df73453dbcc2c89a0bd120019ba739821e2

Contents?: true

Size: 585 Bytes

Versions: 8

Compression:

Stored size: 585 Bytes

Contents

module EffectivePostmark
  class Engine < ::Rails::Engine
    engine_name 'effective_postmark'

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

    # Include effective_postmark_user concern and allow any ActiveRecord object to call it
    initializer 'effective_postmark.active_record' do |app|
      app.config.to_prepare do
        ActiveRecord::Base.extend(EffectivePostmarkUser::Base)
      end
    end

  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
effective_postmark-0.4.0 lib/effective_postmark/engine.rb
effective_postmark-0.3.1 lib/effective_postmark/engine.rb
effective_postmark-0.3.0 lib/effective_postmark/engine.rb
effective_postmark-0.2.0 lib/effective_postmark/engine.rb
effective_postmark-0.1.3 lib/effective_postmark/engine.rb
effective_postmark-0.1.2 lib/effective_postmark/engine.rb
effective_postmark-0.1.1 lib/effective_postmark/engine.rb
effective_postmark-0.1.0 lib/effective_postmark/engine.rb