changed title for sorting
This commit is contained in:
parent
64e80f386a
commit
09f4f9c072
|
@ -9,7 +9,7 @@ class Certificate
|
|||
field :title, as: :slug_title, type: String, localize: true
|
||||
|
||||
belongs_to :member_profile
|
||||
scope :sort_for_frontend, ->{ where(:is_hidden=>false).order_by(:created_at =>'desc') }
|
||||
scope :sort_for_frontend, ->{ where(:is_hidden=>false).order_by(:title =>'asc') }
|
||||
|
||||
def self.get_plugin_datas_to_member(datas)
|
||||
page = Page.where(:module => "personal_certificate").first rescue nil
|
||||
|
|
Loading…
Reference in New Issue