Sha256: 6cb8e362d358330f0139bab21df91808bf5d247a96c512db6d108aa649cdf695

Contents?: true

Size: 801 Bytes

Versions: 2

Compression:

Stored size: 801 Bytes

Contents

require "context_exposer/version"

module ContextExposer
  def self.patch name
    case name.to_sym
    when :decorates_before_rendering
      require "context_exposer/patch/#{name}"
    else
      raise ArgumentError, "No patch defined for: #{name}. Try one of #{patches}"
    end
  end

  def self.patches
    [:decorates_before_rendering]
  end
end

require "active_support"
require "context_exposer/core_ext/string"
require "context_exposer/base_controller"
require "context_exposer/resource_controller"
require "context_exposer/cached_resource_controller"
require "context_exposer/view_context"
require "context_exposer/macros"
require "context_exposer/rails_config"

require 'singleton'
require "context_exposer/page_context"
require "context_exposer/page"
require "context_exposer/view_helpers"

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
context_exposer-0.4.1 lib/context_exposer.rb
context_exposer-0.4.0 lib/context_exposer.rb