Sha256: e911e66cb54d973af757515d16df0dba6f47c1856e3fb5d7d02238a66ccb69ee

Contents?: true

Size: 295 Bytes

Versions: 5

Compression:

Stored size: 295 Bytes

Contents

module AhoyEmail
  class Engine < ::Rails::Engine
    initializer "ahoy_email" do |app|
      secrets = app.respond_to?(:secrets) ? app.secrets : app.config
      AhoyEmail.secret_token ||= secrets.respond_to?(:secret_key_base) ? secrets.secret_key_base : secrets.secret_token
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ahoy_email-0.3.2 lib/ahoy_email/engine.rb
ahoy_email-0.3.1 lib/ahoy_email/engine.rb
ahoy_email-0.3.0 lib/ahoy_email/engine.rb
ahoy_email-0.2.4 lib/ahoy_email/engine.rb
ahoy_email-0.2.3 lib/ahoy_email/engine.rb