Sha256: 73d13966465cd2f3b7d56d682bbdc36fae1dfc06d75bcdd664233d346ab23f73

Contents?: true

Size: 609 Bytes

Versions: 2

Compression:

Stored size: 609 Bytes

Contents

# Top level module, all module methods are used for configuration
module Maildown
  @allow_indentations = false
  @enable_layouts     = false

  def self.allow_indentation
    @allow_indentations
  end

  def self.allow_indentation=(allow_indentations)
    @allow_indentations = allow_indentations
  end

  def self.rails_6?
    @rails_6 ||= Rails.version > "6"
  end
end

require 'maildown/markdown_engine'
ActiveSupport.on_load(:action_mailer) do
  require 'maildown/ext/action_mailer'
end
ActiveSupport.on_load(:action_view) do
  require 'maildown/ext/action_view'
end
require 'maildown/handlers/markdown'

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
maildown-3.3.1 lib/maildown.rb
maildown-3.3.0 lib/maildown.rb