Skip to content

Commit

Permalink
ページ作成機能:rubocop対応
Browse files Browse the repository at this point in the history
  • Loading branch information
appirits-ymatsumoto committed Jun 15, 2015
1 parent 93b8646 commit 618dd07
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions core/app/helpers/comable/application_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -93,17 +93,15 @@ def current_resource
def current_resource_name
"@#{controller.controller_name.singularize}"
end

def current_resource_meta_description?
current_resource.present? &&
current_resource.respond_to?(:meta_description) &&
current_resource.meta_description?
current_resource.present? && current_resource.respond_to?(:meta_description) &&
current_resource.meta_description?
end

def current_resource_meta_keywords?
current_resource.present? &&
current_resource.respond_to?(:meta_keywords) &&
current_resource.meta_keywords?
current_resource.present? && current_resource.respond_to?(:meta_keywords) &&
current_resource.meta_keywords?
end
end
end

0 comments on commit 618dd07

Please sign in to comment.