module RailsTemplateCacheSenexx

Constants

VERSION

Public Class Methods

config() click to toggle source
# File lib/rails-template-cache-senexx.rb, line 14
def self.config
  Rails.application.config
end
setup() { |rails_template_cache| ... } click to toggle source
# File lib/rails-template-cache-senexx.rb, line 8
def self.setup(&block)
  set_config
  yield @@config.rails_template_cache if block
  @@config.rails_template_cache
end

Private Class Methods

set_config() click to toggle source
# File lib/rails-template-cache-senexx.rb, line 20
def self.set_config
  unless @config
    @@config = RailsTemplateCacheSenexx::Engine::Configuration.new
    @@config.rails_template_cache = ActiveSupport::OrderedOptions.new
  end
end