2013-03-04 11:51:51 +00:00
|
|
|
# -*- encoding : utf-8 -*-
|
2013-05-06 20:15:36 +01:00
|
|
|
APP_CONFIG = YAML.load_file("#{Rails.root}/config/application.yml")[Rails.env]
|
|
|
|
# Remove '/' from the end of url
|
2013-05-07 12:18:24 +01:00
|
|
|
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'
|