parent
25449e9803
commit
d53e9a48c7
|
@ -40,7 +40,9 @@ class Book
|
||||||
before_validation :add_http
|
before_validation :add_http
|
||||||
|
|
||||||
scope :sort_for_frontend, ->{ where(:is_hidden=>false).order_by(:year => "desc", :publish_date => "desc", :publication_date => "desc") }
|
scope :sort_for_frontend, ->{ where(:is_hidden=>false).order_by(:year => "desc", :publish_date => "desc", :publication_date => "desc") }
|
||||||
|
def book_paper_type
|
||||||
|
self.book_type.title rescue ""
|
||||||
|
end
|
||||||
def create_link
|
def create_link
|
||||||
title = []
|
title = []
|
||||||
# title << self.member_profile.name if self.member_profile.present?
|
# title << self.member_profile.name if self.member_profile.present?
|
||||||
|
|
Loading…
Reference in New Issue