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 !
added Theme class

git-svn-id: http://svn.techno-weenie.net/projects/mephisto/trunk@950 
567b1171-46fb-0310-a4c9-b4bef9110e78
technoweenie (author)
Sat Mar 04 18:01:45 -0800 2006
commit  7b646d8d95e100134e52949def57654235f75af4
tree    dae3369c198d77a1c89a0b10a6dbd5fc6c0824d4
parent  f40f20317efde0e795283a101450e75693fd075a
...
3
4
5
6
 
7
8
9
...
3
4
5
 
6
7
8
9
0
@@ -3,7 +3,7 @@ class Admin::BaseController < ApplicationController
0
   before_filter :login_required, :except => :feed
0
 
0
   def find_templates_and_resources!
0
- @resources, @templates = Attachment.find(:all, :conditions => ['type in (?)', %w(Resource Template LayoutTemplate)], :order => 'filename').partition do |asset|
0
+ @resources, @templates = Theme.find_current.partition do |asset|
0
       asset.is_a?(Resource)
0
     end
0
     @resources = @resources.sort_by { |r| r.full_path }
...
2
3
4
5
 
6
7
...
2
3
4
 
5
6
7
0
@@ -2,5 +2,5 @@ config.cache_classes = true
0
 config.whiny_nils = true
0
 config.action_controller.consider_all_requests_local = true
0
 config.action_controller.perform_caching = true
0
-config.action_controller.page_cache_directory = File.join(RAILS_ROOT, 'test/cache')
0
+config.action_controller.page_cache_directory = File.join(RAILS_ROOT, 'tmp/cache')
0
 config.action_mailer.delivery_method = :test
0
\ No newline at end of file
...
23
24
25
26
27
28
29
...
23
24
25
 
26
27
28
0
@@ -23,7 +23,6 @@ class TemplateTest < Test::Unit::TestCase
0
     end
0
   end
0
 
0
-
0
   def test_preferred_template_hierarchy_sanity
0
     assert_template_type :home, :main
0
     assert_template_type :single, :single

Comments

    No one has commented yet.