Sha256: 845a664b2c16a2c7f76434a093cee54bac022e912dbcf52b7f42fa366241cd26
Contents?: true
Size: 444 Bytes
Versions: 6
Compression:
Stored size: 444 Bytes
Contents
module Workarea decorate Sort, with: :reviews do class_methods do def top_rated new(I18n.t('workarea.sorts.top_rated'), :top_rated, :'sorts.rating', :desc) end def highest_rating new(I18n.t('workarea.sorts.highest_rating'), :highest_rating, :rating, :desc) end def lowest_rating new(I18n.t('workarea.sorts.lowest_rating'), :lowest_rating, :rating, :asc) end end end end
Version data entries
6 entries across 6 versions & 1 rubygems