Skip to content
Permalink
Browse files Browse the repository at this point in the history
検索フォームクラスごとにソート順を作成するよう修正
  • Loading branch information
nacl-anno committed Oct 7, 2015
1 parent 5ec03cb commit ab96ec7
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions pref-shimane-cms/lib/susanoo/search_form.rb
Expand Up @@ -89,13 +89,9 @@ def field_type(name)
#
#=== ソート順を返す
#
# 子クラスでオーバーライドすること
#
def order_by
order_option = ''
if self.order_column
direction = self.order_direction || 'ASC'
order_option = "#{self.order_column} #{direction}"
end
order_option.present? ? order_option : @@default_order
end

private
Expand Down

0 comments on commit ab96ec7

Please sign in to comment.