public
Fork of halorgium/mephisto
Description: A mirror of the mephisto code-base
Homepage: http://mephistoblog.com/
Clone URL: git://github.com/technoweenie/mephisto.git
Click here to lend your support to: mephisto and make a donation at www.pledgie.com !
fixed that you dont need cache_classes in dev anymore

git-svn-id: http://svn.techno-weenie.net/projects/mephisto/trunk@1428 
567b1171-46fb-0310-a4c9-b4bef9110e78
technoweenie (author)
Tue Jul 25 22:12:14 -0700 2006
commit  d8000f2459fc8e6dba4cb32aad5991de87799da5
tree    6649d99866b216709c118f69bf1aa2ca4cd11f1b
parent  f292f1f2b3eae690ce55653ed597f5a86bdcb442
...
62
63
64
65
66
67
68
69
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
70
71
72
...
62
63
64
 
 
 
 
 
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
0
@@ -62,11 +62,26 @@ end
0
 require 'tzinfo'
0
 require 'time_ext'
0
 require 'zip/zipfilesystem'
0
-Liquid::Template.register_filter(Mephisto::Liquid::Filters)
0
-Liquid::Template.register_tag('textile', Mephisto::Liquid::Textile)
0
-Liquid::Template.register_tag('commentform', Mephisto::Liquid::CommentForm)
0
-Liquid::Template.register_tag('pagenavigation', Mephisto::Liquid::PageNavigation)
0
-Liquid::Template.register_tag('head', Mephisto::Liquid::Head)
0
+require 'dispatcher'
0
+
0
+class << Dispatcher
0
+ def register_liquid_tags
0
+ Liquid::Template.register_filter(Mephisto::Liquid::Filters)
0
+ Liquid::Template.register_tag(:textile, Mephisto::Liquid::Textile)
0
+ Liquid::Template.register_tag(:commentform, Mephisto::Liquid::CommentForm)
0
+ Liquid::Template.register_tag(:pagenavigation, Mephisto::Liquid::PageNavigation)
0
+ Liquid::Template.register_tag(:head, Mephisto::Liquid::Head)
0
+ end
0
+
0
+ def reset_application_with_plugins!
0
+ reset_application_without_plugins!
0
+ register_liquid_tags
0
+ end
0
+
0
+ alias_method_chain :reset_application!, :plugins
0
+end
0
+
0
+Dispatcher.register_liquid_tags
0
 FilteredColumn.constant_filters << :macro_filter
0
 
0
 ActiveSupport::CoreExtensions::Time::Conversions::DATE_FORMATS.update \
...
3
4
5
6
 
7
8
9
...
3
4
5
 
6
7
8
9
0
@@ -3,7 +3,7 @@
0
 # In the development environment your application's code is reloaded on
0
 # every request. This slows down response time but is perfect for development
0
 # since you don't have to restart the webserver when you make code changes.
0
-config.cache_classes = true
0
+config.cache_classes = false
0
 
0
 # Log error messages when you accidentally call methods on nil.
0
 config.whiny_nils = true

Comments

    No one has commented yet.