Change NewBlog to new_blog
This commit is contained in:
1 parent
79f778ad8c
commit
cae3daa9c4
96 files changed
+133
-65
No files matched your search
@@ -28,7 +28,7 @@ class Admin::PagePartsController < ApplicationController
|
||||
@partial = 'edit_text'
|
||||
@part_locale = params[:part_locale] || I18n.locale.to_s
|
||||
when 'module'
|
||||
@plugins=[{:module=>"Blog",:widgets=>[{:name=>"Blog",:path=>"panel/blog/widget_latest_post"},{:name=>"Blog",:path=>"panel/blog/widget_index"}]}]
|
||||
@plugins=[{:module=>"Blog",:widgets=>[{:name=>"Blog",:path=>"panel/new_blog/widget_latest_post"},{:name=>"Blog",:path=>"panel/new_blog/widget_index"}]}]
|
||||
when 'snippet'
|
||||
end
|
||||
end
|
||||
|
||||
@@ -9,12 +9,12 @@ class ApplicationController < ActionController::Base
|
||||
def front_end_available(module_app_title='')
|
||||
app_controller = ModuleApp.first(conditions: {:title => module_app_title} )
|
||||
unless app_controller.enable_frontend?
|
||||
render :text => 'View not available'
|
||||
render :nothing
|
||||
end
|
||||
end
|
||||
|
||||
def get_all_app_engines
|
||||
ary = ["vender/plugins/NewBlog"]
|
||||
ary = ["vender/plugins/new_blog"]
|
||||
app_engines = ary.collect{|t|
|
||||
Rails::Engine.find t
|
||||
}
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
class ObitFrontendComponentController< ApplicationController
|
||||
before_filter {|c| c.front_end_available(@app_title)}
|
||||
layout 'production'
|
||||
end
|
||||
@@ -0,0 +1,3 @@
|
||||
class ObitFrontendController< ObitFrontendComponentController
|
||||
|
||||
end
|
||||
@@ -0,0 +1,3 @@
|
||||
class ObitWidgetController< ObitFrontendComponentController
|
||||
|
||||
end
|
||||
Reference in new issue
Block a user