Skip to content

Commit

Permalink
Fix for bookmark error on boolean method names
Browse files Browse the repository at this point in the history
  • Loading branch information
elzj committed Sep 14, 2014
1 parent 9a0ffc9 commit f5497ca
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/models/external_work.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
1 change: 1 addition & 0 deletions app/models/series.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f5497ca

Please sign in to comment.