public
Fork of aussiegeek/theme_support
Description:
Homepage:
Clone URL: git://github.com/jystewart/theme_support.git
theme_support / init.rb
100755 22 lines (17 sloc) 0.729 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Initializes theme support by extending some of the core Rails classes
require 'patches/actionview_ex'
require 'patches/actioncontroller_ex'
require 'patches/actionmailer_ex'
require 'patches/routeset_ex'
 
ActionController::Base.send(:include, ThemeSupport::ControllerExtensions)
ActionMailer::Base.send(:include, ThemeSupport::ControllerExtensions)
 
# Add the tag helpers for rhtml and, optionally, liquid templates
require 'helpers/rhtml_theme_tags'
 
# Commented out to remove the message
# "Liquid doesn't seem to be loaded... uninitialized constant Liquid"
 
#begin
# require 'helpers/liquid_theme_tags'
#rescue
# # I guess Liquid isn't being used...
# STDERR.puts "Liquid doesn't seem to be loaded... #{$!}"
#end