Skip to content

Commit

Permalink
added a comment to explain self.name[13..-1] since I can't think of a…
Browse files Browse the repository at this point in the history
… more intutive way to handle that.
  • Loading branch information
tomwolfe authored and diegodurs committed May 12, 2015
1 parent 2d4c1c4 commit b77fcac
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/musicbrainz/models/base_model.rb
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ def escape_strings(hash)
end

def underscore_name
# self.name[13..-1] => removes MusicBrainz::
self.name[13..-1].underscore
end

Expand Down

0 comments on commit b77fcac

Please sign in to comment.