Skip to content

Commit

Permalink
Improved query for while expecting tag_names
Browse files Browse the repository at this point in the history
  • Loading branch information
RajRoR committed Jan 23, 2015
1 parent 6419eed commit d19c501
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/gutentag/active_record.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def reset_tag_names
end

def tag_names
@tag_names ||= tags.collect(&:name)
@tag_names ||= tags.pluck(:name)
end

def tag_names=(names)
Expand Down

0 comments on commit d19c501

Please sign in to comment.