Sha256: a19a8536d4308428c6ad174cfc5218da2e49bf796a0f62d50e548f6652018b4c
Contents?: true
Size: 1.04 KB
Versions: 2
Compression:
Stored size: 1.04 KB
Contents
# frozen_string_literal: true require "jbuilder" require_relative "halbuilder/configuration" require_relative "halbuilder/embed" require_relative "halbuilder/helper" require_relative "halbuilder/key_format" require_relative "halbuilder/link" require_relative "halbuilder/paginate" require_relative "halbuilder/version" require_relative "halbuilder/zoom" module Halbuilder class << self def reset! @configuration = nil end def configuration @configuration ||= Configuration.new end def configure yield configuration setup end def setup Halbuilder::KeyFormat.setup end end class Error < StandardError; end end Halbuilder::KeyFormat.setup Jbuilder.include Halbuilder::Embed Jbuilder.include Halbuilder::Link Jbuilder.include Halbuilder::Paginate Jbuilder.include Halbuilder::Zoom # optional rails helpers if Module.const_defined?(:ActionView) ActionView::Base.include(Halbuilder::Helper) end if Module.const_defined?(:ActionController) ActionController::Base.include(Halbuilder::Helper) end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
halbuilder-0.1.2 | lib/halbuilder.rb |
halbuilder-0.1.1 | lib/halbuilder.rb |