Skip to content

Commit

Permalink
Merge pull request #65 from dior001/master
Browse files Browse the repository at this point in the history
Fix undefined method attributes error in Taggable
  • Loading branch information
Lucas Neves Martins committed May 6, 2014
2 parents 4a3de3a + f5207b3 commit 8537d9c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions lib/highrise/person.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@ class Person < Subject
include Taggable
include Searchable

def tags
self.attributes.has_key?("tags") ? self.attributes["tags"] : super
end

def company
Company.find(company_id) if company_id
end
Expand Down
2 changes: 1 addition & 1 deletion lib/highrise/taggable.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module Highrise
module Taggable
def tags
self.get(:tags)
self.attributes.has_key?("tags") ? self.attributes["tags"] : self.get(:tags)
end

def tag!(tag_name)
Expand Down

0 comments on commit 8537d9c

Please sign in to comment.