aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhilip Arndt <parndt@gmail.com>2012-05-19 19:37:59 -0700
committerPhilip Arndt <parndt@gmail.com>2012-05-19 19:37:59 -0700
commit0bb265521c5c70ad1ac378e9d7854902a0c4200d (patch)
tree73e0626e2ca9a057b6aa53a2576e11aa84467039
parentf4b647cc93fa0a498773a3f3146bf5f5bd017162 (diff)
parentc72d5d65f689393bbb05f6586519c13258671ef2 (diff)
downloadrefinerycms-blog-0bb265521c5c70ad1ac378e9d7854902a0c4200d.tar.gz
refinerycms-blog-0bb265521c5c70ad1ac378e9d7854902a0c4200d.tar.bz2
refinerycms-blog-0bb265521c5c70ad1ac378e9d7854902a0c4200d.zip
Merge pull request #237 from GeekOnCoffee/eliminate_ternary
Eliminate Ternary
-rw-r--r--app/models/refinery/blog/post.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/refinery/blog/post.rb b/app/models/refinery/blog/post.rb
index 6a2d7c2..c32b775 100644
--- a/app/models/refinery/blog/post.rb
+++ b/app/models/refinery/blog/post.rb
@@ -49,7 +49,7 @@ module Refinery
end
def friendly_id_source
- custom_url.present? ? custom_url : title
+ custom_url.presence || title
end
class << self