{"issue":{"state":"closed","pull_request":{"diff_url":null,"html_url":null,"patch_url":null},"milestone":{"state":"open","open_issues":10,"url":"https://api.github.com/repos/mongoid/mongoid/milestones/29","due_on":"2011-11-14T08:00:00Z","title":"2.3.4","description":"","creator":{"avatar_url":"https://secure.gravatar.com/avatar/6f09262a13427532461b0b618d445b1e?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"6f09262a13427532461b0b618d445b1e","url":"https://api.github.com/users/durran","login":"durran","id":9030},"number":29,"closed_issues":7,"created_at":"2011-10-25T11:31:09Z"},"user":{"avatar_url":"https://secure.gravatar.com/avatar/b25e8d5ce2a811dd8a6deb227ab001d7?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"b25e8d5ce2a811dd8a6deb227ab001d7","url":"https://api.github.com/users/lisinge","login":"lisinge","id":22270},"assignee":null,"updated_at":"2011-11-14T09:41:51Z","labels":[{"name":"could not reproduce","color":"825D1E","url":"https://api.github.com/repos/mongoid/mongoid/labels/could+not+reproduce"},{"name":"needs info","color":"444444","url":"https://api.github.com/repos/mongoid/mongoid/labels/needs+info"}],"comments":7,"closed_at":"2011-11-13T14:41:58Z","url":"https://api.github.com/repos/mongoid/mongoid/issues/1390","body":"This error appeared somewhere after updating from 2.3.0 to 2.3.3:\r\n\r\n    ruby-1.9.3-p0 :002 > Customer.first\r\n    NameError: wrong constant name customer\r\n    \tfrom /Users/lisinge/.rvm/gems/ruby-1.9.3-p0/gems/activesupport-3.1.1/lib/active_support/inflector/methods.rb:124:in `const_defined?'\r\n    \tfrom /Users/lisinge/.rvm/gems/ruby-1.9.3-p0/gems/activesupport-3.1.1/lib/active_support/inflector/methods.rb:124:in `block in constantize'\r\n    \tfrom /Users/lisinge/.rvm/gems/ruby-1.9.3-p0/gems/activesupport-3.1.1/lib/active_support/inflector/methods.rb:123:in `each'\r\n    \tfrom /Users/lisinge/.rvm/gems/ruby-1.9.3-p0/gems/activesupport-3.1.1/lib/active_support/inflector/methods.rb:123:in `constantize'\r\n    \tfrom /Users/lisinge/.rvm/gems/ruby-1.9.3-p0/gems/activesupport-3.1.1/lib/active_support/core_ext/string/inflections.rb:43:in `constantize'\r\n    \tfrom /Users/lisinge/.rvm/gems/ruby-1.9.3-p0/gems/mongoid-2.3.3/lib/mongoid/factory.rb:39:in `from_db'\r\n    \tfrom /Users/lisinge/.rvm/gems/ruby-1.9.3-p0/gems/mongoid-2.3.3/lib/mongoid/contexts/mongo.rb:162:in `first'\r\n    \tfrom /Users/lisinge/.rvm/gems/ruby-1.9.3-p0/gems/mongoid-2.3.3/lib/mongoid/criteria.rb:43:in `one'\r\n    \tfrom /Users/lisinge/.rvm/gems/ruby-1.9.3-p0/gems/mongoid-2.3.3/lib/mongoid/criterion/inclusion.rb:127:in `find'\r\n    \tfrom /Users/lisinge/.rvm/gems/ruby-1.9.3-p0/gems/mongoid-2.3.3/lib/mongoid/finders.rb:84:in `find'\r\n    \tfrom /Users/lisinge/.rvm/gems/ruby-1.9.3-p0/gems/mongoid-2.3.3/lib/mongoid/finders.rb:122:in `first'\r\n    \tfrom (irb):2\r\n    \tfrom /Users/lisinge/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.1.1/lib/rails/commands/console.rb:45:in `start'\r\n    \tfrom /Users/lisinge/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.1.1/lib/rails/commands/console.rb:8:in `start'\r\n    \tfrom /Users/lisinge/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.1.1/lib/rails/commands.rb:40:in `<top (required)>'\r\n    \tfrom script/rails:6:in `require'\r\n    \tfrom script/rails:6:in `<main>'ruby-1.9.3-p0 :003 >\r\n\r\nAll the other models works just fine for some reason. The customer model looks like this:\r\n\r\n\r\n    class Customer\r\n      include Mongoid::Document\r\n      include Mongoid::Timestamps\r\n\r\n      field :name, type: String\r\n  \r\n    end\r\n","html_url":"https://github.com/mongoid/mongoid/issues/1390","title":"Wrong constant name customer","number":1390,"id":2100791,"created_at":"2011-10-31T18:49:20Z"},"action":"created","comment":{"user":{"avatar_url":"https://secure.gravatar.com/avatar/e43f261e9ff9d2bf1ddca57185ce0f78?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"e43f261e9ff9d2bf1ddca57185ce0f78","url":"https://api.github.com/users/Zeeraw","login":"Zeeraw","id":751958},"updated_at":"2011-11-14T09:41:51Z","url":"https://api.github.com/repos/mongoid/mongoid/issues/comments/2728272","body":"@durran - Ah, great!\r\nI don't know how it got lower cased in the first place. The issue has not repeated itself either.","id":2728272,"created_at":"2011-11-14T09:41:51Z"}}