disable all sorted_tags

This commit is contained in:
Matt K. Fu 2013-04-26 18:07:59 +08:00
parent 3e567223e3
commit 64101109dd
17 changed files with 32 additions and 2793 deletions

View File

@ -4,7 +4,7 @@ protected
def get_categories_and_tags def get_categories_and_tags
unless @selected[:module_app].nil? unless @selected[:module_app].nil?
@categories = @selected[:module_app].get_categories @categories = @selected[:module_app].get_categories
@tags = @selected[:module_app].get_tags @tags = @selected[:module_app].tags
end end
end end
@ -55,4 +55,4 @@ protected
end end
end end

View File

@ -21,7 +21,8 @@ class Asset
before_save :clean_tags before_save :clean_tags
def sorted_tags def sorted_tags
tags.order_by(I18n.locale, :asc) #tags.order_by(I18n.locale, :asc)
tags
end end
protected protected

File diff suppressed because it is too large Load Diff

View File

@ -200,7 +200,8 @@ class Bulletin
end end
# def sorted_tags # def sorted_tags
# tags.order_by(I18n.locale, :asc) # #tags.order_by(I18n.locale, :asc)
# tags
# end # end

View File

@ -62,7 +62,8 @@ class ArchiveFile
end end
def sorted_tags def sorted_tags
tags.order_by(I18n.locale, :asc) #tags.order_by(I18n.locale, :asc)
tags
end end

View File

@ -63,7 +63,8 @@ class Qa
end end
def sorted_tags def sorted_tags
tags.order_by(I18n.locale, :asc) #tags.order_by(I18n.locale, :asc)
tags
end end
def update_avliable_language def update_avliable_language

View File

@ -79,7 +79,8 @@ class WritingBook
end end
def sorted_tags def sorted_tags
tags.order_by(I18n.locale, :asc) #tags.order_by(I18n.locale, :asc)
tags
end end
def update_avliable_language def update_avliable_language

View File

@ -80,7 +80,8 @@ class WritingConference
end end
def sorted_tags def sorted_tags
tags.order_by(I18n.locale, :asc) #tags.order_by(I18n.locale, :asc)
tags
end end
def update_avliable_language def update_avliable_language

View File

@ -52,7 +52,8 @@ class Diploma
end end
def sorted_tags def sorted_tags
tags.order_by(I18n.locale, :asc) #tags.order_by(I18n.locale, :asc)
tags
end end
def update_avliable_language def update_avliable_language

View File

@ -66,7 +66,8 @@ class Experience
end end
def sorted_tags def sorted_tags
tags.order_by(I18n.locale, :asc) #tags.order_by(I18n.locale, :asc)
tags
end end
def update_avliable_language def update_avliable_language

View File

@ -63,7 +63,8 @@ class Honor
end end
def sorted_tags def sorted_tags
tags.order_by(I18n.locale, :asc) #tags.order_by(I18n.locale, :asc)
tags
end end
def update_avliable_language def update_avliable_language

View File

@ -81,7 +81,8 @@ class WritingJournal
end end
def sorted_tags def sorted_tags
tags.order_by(I18n.locale, :asc) #tags.order_by(I18n.locale, :asc)
tags
end end
def update_avliable_language def update_avliable_language

View File

@ -72,7 +72,8 @@ class Lab
end end
def sorted_tags def sorted_tags
tags.order_by(I18n.locale, :asc) #tags.order_by(I18n.locale, :asc)
tags
end end
def update_avliable_language def update_avliable_language

View File

@ -72,7 +72,8 @@ class WritingPatent
end end
def sorted_tags def sorted_tags
tags.order_by(I18n.locale, :asc) #tags.order_by(I18n.locale, :asc)
tags
end end
def update_avliable_language def update_avliable_language

View File

@ -74,7 +74,8 @@ class Project
end end
def sorted_tags def sorted_tags
tags.order_by(I18n.locale, :asc) #tags.order_by(I18n.locale, :asc)
tags
end end
def update_avliable_language def update_avliable_language

View File

@ -69,7 +69,8 @@ class Research
end end
def sorted_tags def sorted_tags
tags.order_by(I18n.locale, :asc) #tags.order_by(I18n.locale, :asc)
tags
end end
def update_avliable_language def update_avliable_language

View File

@ -59,7 +59,8 @@ class WebLink
end end
def sorted_tags def sorted_tags
tags.order_by(I18n.locale, :asc) #tags.order_by(I18n.locale, :asc)
tags
end end
def update_avliable_language def update_avliable_language