aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorAndrew Hooker <GeekOnCoffee@gmail.com>2012-05-19 21:03:36 -0500
committerAndrew Hooker <GeekOnCoffee@gmail.com>2012-05-19 21:03:36 -0500
commitc72d5d65f689393bbb05f6586519c13258671ef2 (patch)
tree83c3174580b056de6201ca30325371cf1f0eaabc /app
parent6fa5bbdf33b681f7c9595a327a39cc99de7bf638 (diff)
downloadrefinerycms-blog-c72d5d65f689393bbb05f6586519c13258671ef2.tar.gz
refinerycms-blog-c72d5d65f689393bbb05f6586519c13258671ef2.tar.bz2
refinerycms-blog-c72d5d65f689393bbb05f6586519c13258671ef2.zip
Eliminate Ternary
Diffstat (limited to 'app')
-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 b078272..59e70f1 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