* 'ntu' of https://github.com/Rulingcom/orbit:
  complete page error handler logic
This commit is contained in:
Rueshyna 2013-01-03 18:40:41 +08:00
commit fd2b176798
1 changed files with 1 additions and 1 deletions

View File

@ -76,7 +76,7 @@ class PagesController < ApplicationController
end
@item = Item.where(module_app_id: module_app.id,app_frontend_url:params[:app_action]).all_of("tag" => {"$in" => [nil,'']},"category" => { "$in" => [nil,'']}).first unless @item
@item = Item.where(module_app_id: module_app.id,app_frontend_url:params[:app_action]).first unless @item
raise PageError,'Missing Frontend Page'
raise PageError,'Missing Frontend Page' if @item.nil?
end
def save_from_no_lang_for_page