Eliminate Ternary
This commit is contained in:
parent
6fa5bbdf33
commit
c72d5d65f6
1 changed files with 1 additions and 1 deletions
|
@ -49,7 +49,7 @@ module Refinery
|
||||||
end
|
end
|
||||||
|
|
||||||
def friendly_id_source
|
def friendly_id_source
|
||||||
custom_url.present? ? custom_url : title
|
custom_url.presence || title
|
||||||
end
|
end
|
||||||
|
|
||||||
class << self
|
class << self
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue