Skip to content

Commit

Permalink
Only grab the deepest value
Browse files Browse the repository at this point in the history
  • Loading branch information
nbudin committed Feb 21, 2012
1 parent f70499e commit e5bb3f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ntee/search_dimension.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def value=(new_value)

if category
# we got an NTEE code as our value, let's convert it to a hierarchical path
self.value = self.class.values_for_category(category)
self.value = self.class.values_for_category(category).last
else
super
end
Expand Down

0 comments on commit e5bb3f2

Please sign in to comment.