rosa-build/config/initializers/0_app_config.rb

6 lines
291 B
Ruby
Raw Normal View History

2015-11-09 14:03:24 +00:00
APP_CONFIG = Rails.application.config_for('application')
# Remove '/' from the end of url
APP_CONFIG.keys.select {|key| key =~ /_url\Z/}.each {|key| APP_CONFIG[key] = APP_CONFIG[key].chomp('/') if APP_CONFIG[key].respond_to?(:chomp)}
2013-06-21 14:45:28 +01:00
# Paginates a static array
require 'will_paginate/array'