{"action":"opened","issue":{"number":20,"created_at":"2011-10-26T00:34:59Z","pull_request":{"diff_url":null,"patch_url":null,"html_url":null},"body":"To reproduce:\r\nclass Department\r\n  include SimplyStored::Couch\r\n  has_and_belongs_to_many :losses, :storing_keys => true, :class_name => 'Loss'\r\nend\r\n\r\nclass Loss\r\n  include SimplyStored::Couch\r\n  has_and_belongs_to_many :departments, :storing_keys => true, :class_name => 'Department'\r\nend\r\n\r\nwhen calling, a_department.losses we get an uninizialized constant error, that it can't find 'Los'\r\n\r\nThis occurs when in get_class_from_name we pass in the class name of 'Loss' and when calling classify on 'Loss' it shrinks it to 'Los'.\r\n","comments":0,"title":"name error on hbtm rel when class name has trailing S's ","updated_at":"2011-10-26T00:34:59Z","url":"https://api.github.com/repos/peritor/simply_stored/issues/20","id":2052047,"assignee":null,"milestone":null,"closed_at":null,"user":{"avatar_url":"https://secure.gravatar.com/avatar/4594eaf20e8a5ce89c9a79423ecd2999?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"4594eaf20e8a5ce89c9a79423ecd2999","url":"https://api.github.com/users/msolovyov","id":777916,"login":"msolovyov"},"html_url":"https://github.com/peritor/simply_stored/issues/20","labels":[],"state":"open"},"legacy":{"number":20,"action":"opened","issue":2052047}}