Sha256: 8f84d457f398ee973e5ab46042d599adafbd3db6eac687d3eb0772f4122bb1a9

Contents?: true

Size: 345 Bytes

Versions: 6

Compression:

Stored size: 345 Bytes

Contents

require 'active_support/configurable'
require 'html2pdf/rails/version'
require 'html2pdf/rails/railtie'

module Html2Pdf
  class Config
    include ActiveSupport::Configurable
    config_accessor :endpoint
  end

  class << self
    def configure(&block)
      yield config
    end

    def config
      @config ||= Config.new
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
html2pdf-rails-0.4.0 lib/html2pdf/rails.rb
html2pdf-rails-0.3.1 lib/html2pdf/rails.rb
html2pdf-rails-0.3.0 lib/html2pdf/rails.rb
html2pdf-rails-0.2.0 lib/html2pdf/rails.rb
html2pdf-rails-0.1.1 lib/html2pdf/rails.rb
html2pdf-rails-0.1.0 lib/html2pdf/rails.rb