Sha256: d4434fd160364809aa7fd85b30e17b8f33cffecc4ffd16752b6d4f45d297a130
Contents?: true
Size: 1.41 KB
Versions: 12
Compression:
Stored size: 1.41 KB
Contents
module Refinery module Application class << self def refinery! ::Refinery.config.before_inclusion_procs.each(&:call) ::ApplicationHelper.send :include, ::Refinery::ApplicationHelper [::ApplicationController, ::Admin::BaseController].each do |c| c.send :include, ::Refinery::ApplicationController c.send :helper, :application end ::Admin::BaseController.send :include, ::Refinery::Admin::BaseController ::Refinery.config.after_inclusion_procs.each(&:call) end def included(base) self.instance_eval %( def self.method_missing(method_sym, *arguments, &block) #{base}.send(method_sym) end ) # JavaScript files you want as :defaults (application.js is always included). base.config.action_view.javascript_expansions[:defaults] = %w() # Configure the default encoding used in templates for Ruby 1.9. base.config.encoding = 'utf-8' # Configure sensitive parameters which will be filtered from the log file. base.config.filter_parameters += [:password, :password_confirmation] # Specify a cache store to use base.config.cache_store = :memory_store # Include the refinery controllers and helpers dynamically base.config.to_prepare do ::Refinery::Application.refinery! end end end end end
Version data entries
12 entries across 12 versions & 1 rubygems