diff options
author | Harald Eilertsen <haraldei@anduin.net> | 2014-12-07 23:01:33 +0100 |
---|---|---|
committer | Harald Eilertsen <haraldei@anduin.net> | 2014-12-07 23:01:33 +0100 |
commit | e49b8c0b0e58e8cd50d1675473ff4bc737b068ed (patch) | |
tree | 57441b3512da5b9ff6f50d119e63c5cb42997852 /config/initializers | |
parent | 1809e9b04ac41154ced5e5b54bbd5e1190c02cd2 (diff) | |
download | hmnoweb-e49b8c0b0e58e8cd50d1675473ff4bc737b068ed.tar.gz hmnoweb-e49b8c0b0e58e8cd50d1675473ff4bc737b068ed.tar.bz2 hmnoweb-e49b8c0b0e58e8cd50d1675473ff4bc737b068ed.zip |
Add refinery setup tasks for capistrano.
Copied from Åsatru.no setup.
Diffstat (limited to 'config/initializers')
-rw-r--r-- | config/initializers/refinery/core.rb.erb | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/config/initializers/refinery/core.rb.erb b/config/initializers/refinery/core.rb.erb new file mode 100644 index 0000000..dcec53c --- /dev/null +++ b/config/initializers/refinery/core.rb.erb @@ -0,0 +1,54 @@ +# encoding: utf-8 +# :mode=ruby: + +Refinery::Core.configure do |config| + # When true will rescue all not found errors and display a friendly error page + config.rescue_not_found = Rails.env.production? + + # When true this will force SSL redirection in all Refinery backend controllers. + # config.force_ssl = false + + # When true will use Amazon's Simple Storage Service instead of + # the default file system for storing resources and images + config.s3_backend = !(ENV['S3_KEY'].nil? || ENV['S3_SECRET'].nil?) + + # Whenever Refinery caches anything and can set a cache key, it will add + # a prefix to the cache key containing the string you set here. + config.base_cache_key = "<%= ActiveSupport::Inflector::parameterize(site_name, '_') %>" + + # Site name + config.site_name = "<%= site_name %>" + + # This activates Google Analytics tracking within your website. If this + # config is left blank or set to UA-xxxxxx-x then no remote calls to + # Google Analytics are made. + # config.google_analytics_page_code = "UA-xxxxxx-x" + + # Enable/disable authenticity token on frontend + # config.authenticity_token_on_frontend = true + + # Hide/show child pages in menu + config.menu_hide_children = true + + # CSS class selectors for menu helper + config.menu_css = {:selected=>"active", :first=>"first", :last=>"last"} + + # Should set this if concerned about DOS attacks. See + # http://markevans.github.com/dragonfly/file.Configuration.html#Configuration + config.dragonfly_secret = "<%= SecureRandom.hex(24) %>" + + # Show/hide IE6 upgrade message in the backend + # config.ie6_upgrade_message_enabled = true + + # Show/hide browser update message in the backend + # config.show_internet_explorer_upgrade_message = false + + # Add extra tags to the wymeditor whitelist e.g. = {'tag' => {'attributes' => {'1' => 'href'}}} or just {'tag' => {}} + # config.wymeditor_whitelist_tags = {} + + # Register extra javascript for backend + # config.register_javascript "prototype-rails" + + # Register extra stylesheet for backend (optional options) + # config.register_stylesheet "custom", :media => 'screen' +end |