Sha256: 706ca0af357e3c7f7c0c3901dc6039bc88d62dca57f5804ed0367f3e0771b3f9
Contents?: true
Size: 1.87 KB
Versions: 4
Compression:
Stored size: 1.87 KB
Contents
module Refinery module Core include ActiveSupport::Configurable config_accessor :rescue_not_found, :s3_backend, :base_cache_key, :site_name, :google_analytics_page_code, :authenticity_token_on_frontend, :menu_hide_children, :menu_css, :dragonfly_secret, :ie6_upgrade_message_enabled, :show_internet_explorer_upgrade_message, :wymeditor_whitelist_tags, :javascripts, :stylesheets, :s3_bucket_name, :s3_region, :s3_access_key_id, :s3_secret_access_key self.rescue_not_found = false self.s3_backend = false self.base_cache_key = :refinery self.site_name = "Company Name" self.google_analytics_page_code = "UA-xxxxxx-x" self.authenticity_token_on_frontend = true self.menu_hide_children = false self.menu_css = { :selected => "selected", :first => "first", :last => "last" } self.dragonfly_secret = Array.new(24) { rand(256) }.pack('C*').unpack('H*').first self.ie6_upgrade_message_enabled = true self.show_internet_explorer_upgrade_message = false self.wymeditor_whitelist_tags = {} self.javascripts = [] self.stylesheets = [] self.s3_bucket_name = ENV['S3_BUCKET'] self.s3_region = ENV['S3_REGION'] self.s3_access_key_id = ENV['S3_KEY'] self.s3_secret_access_key = ENV['S3_SECRET'] def config.register_javascript(name) self.javascripts << name end def config.register_stylesheet(*args) self.stylesheets << Stylesheet.new(*args) end def self.clear_javascripts! self.javascripts = [] end def self.clear_stylesheets! self.stylesheets = [] end # wrapper for stylesheet registration class Stylesheet attr_reader :options, :path def initialize(*args) @options = args.extract_options! @path = args.first if args.first end end end end
Version data entries
4 entries across 4 versions & 1 rubygems