forked from jystewart/theme_support
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathinit.rb
More file actions
executable file
·21 lines (17 loc) · 729 Bytes
/
init.rb
File metadata and controls
executable file
·21 lines (17 loc) · 729 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# 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