From f5497ca99101a9267b14fa4bc6e0af03bea10072 Mon Sep 17 00:00:00 2001 From: elz Date: Sun, 14 Sep 2014 15:03:41 -0400 Subject: [PATCH] Fix for bookmark error on boolean method names --- app/models/external_work.rb | 2 ++ app/models/series.rb | 1 + 2 files changed, 3 insertions(+) diff --git a/app/models/external_work.rb b/app/models/external_work.rb index bd5632ce559..861df7a94b1 100644 --- a/app/models/external_work.rb +++ b/app/models/external_work.rb @@ -161,10 +161,12 @@ def bookmarkable_json def posted true end + alias_method :posted?, :posted def restricted false end + alias_method :restricted?, :restricted def creators [author] diff --git a/app/models/series.rb b/app/models/series.rb index 78857b4f755..bc58274412c 100644 --- a/app/models/series.rb +++ b/app/models/series.rb @@ -236,6 +236,7 @@ def language_id def posted !posted_works.empty? end + alias_method :posted?, :posted # Simple name to make it easier for people to use in full-text search def tag