Revert "Merge with new_blog"

This reverts commit 64c68fcdeb.
This commit is contained in:
Matthew Kaito Juyuan Fu committed 2011-10-20 10:01:39 +08:00
1 parent 64c68fcdeb
commit ff82391b7d
80 files changed
+79 -906

No files matched your search

-21
View File
@@ -6,25 +6,6 @@ class ApplicationController < ActionController::Base
helper :all
before_filter :set_locale, :set_site
def get_all_app_engines
ary = ["vender/plugins/NewBlog"]
app_engines = ary.collect{|t|
Rails::Engine.find t
}
app_engines.each{ |t|
# t.
}
end
def flaten_controller
ary=[]
Find.find(File.join(Rails.root , 'vendor/plugins/')) { |name|
require_dependency(name) if /_controller\.rb$/ =~ name
ary << name
}
ary
end
# Find the parent for the given item
def find_parent_item
@parent_item = Item.first(:conditions => { :id => BSON::ObjectId(params[:parent_id]) }) rescue nil
@@ -97,6 +78,4 @@ class ApplicationController < ActionController::Base
Item.first(:conditions => {:parent_id => nil})
end
end