Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save brianhempel/844629 to your computer and use it in GitHub Desktop.
Save brianhempel/844629 to your computer and use it in GitHub Desktop.
MongoMapper mmconsole broken in Ruby 1.8.7
$ bin/mmconsole
ruby-1.8.7-p299 > require 'rubygems' # or try to define a MM class
NameError: uninitialized constant ActiveModel::Naming
from ~/.rvm/gems/ruby-1.8.7-p299@mmtest/gems/activemodel-3.0.4/lib/active_model/translation.rb:24
from ./bin/../lib/mongo_mapper/translation.rb:4
from ~/.rvm/gems/ruby-1.8.7-p299@mmtest/gems/activesupport-3.0.4/lib/active_support/core_ext/module/introspection.rb:70:in `const_get'
from ~/.rvm/gems/ruby-1.8.7-p299@mmtest/gems/activesupport-3.0.4/lib/active_support/core_ext/module/introspection.rb:70:in `local_constants'
from ~/.rvm/gems/ruby-1.8.7-p299@mmtest/gems/activesupport-3.0.4/lib/active_support/core_ext/module/introspection.rb:70:in `each'
from ~/.rvm/gems/ruby-1.8.7-p299@mmtest/gems/activesupport-3.0.4/lib/active_support/core_ext/module/introspection.rb:70:in `local_constants'
from ~/.rvm/gems/ruby-1.8.7-p299@mmtest/gems/activesupport-3.0.4/lib/active_support/core_ext/module/introspection.rb:68:in `each'
from ~/.rvm/gems/ruby-1.8.7-p299@mmtest/gems/activesupport-3.0.4/lib/active_support/core_ext/module/introspection.rb:68:in `local_constants'
from ~/.rvm/gems/ruby-1.8.7-p299@mmtest/gems/activesupport-3.0.4/lib/active_support/core_ext/module/introspection.rb:86:in `local_constant_names'
from ./bin/../lib/mongo_mapper/plugins/querying.rb:2
from ./bin/../lib/mongo_mapper/document.rb:10
from ~/.rvm/gems/ruby-1.8.7-p299@mmtest/gems/activesupport-3.0.4/lib/active_support/core_ext/module/introspection.rb:70:in `const_get'
from ~/.rvm/gems/ruby-1.8.7-p299@mmtest/gems/activesupport-3.0.4/lib/active_support/core_ext/module/introspection.rb:70:in `local_constants'
from ~/.rvm/gems/ruby-1.8.7-p299@mmtest/gems/activesupport-3.0.4/lib/active_support/core_ext/module/introspection.rb:70:in `each'
from ~/.rvm/gems/ruby-1.8.7-p299@mmtest/gems/activesupport-3.0.4/lib/active_support/core_ext/module/introspection.rb:70:in `local_constants'
from ~/.rvm/gems/ruby-1.8.7-p299@mmtest/gems/activesupport-3.0.4/lib/active_support/core_ext/module/introspection.rb:68:in `each'
from ~/.rvm/gems/ruby-1.8.7-p299@mmtest/gems/activesupport-3.0.4/lib/active_support/core_ext/module/introspection.rb:68:in `local_constants'
from ~/.rvm/gems/ruby-1.8.7-p299@mmtest/gems/activesupport-3.0.4/lib/active_support/core_ext/module/introspection.rb:86:in `local_constant_names'
from ~/.rvm/gems/ruby-1.8.7-p299@mmtest/gems/activemodel-3.0.4/lib/active_model/naming.rb:1
from ./bin/../lib/mongo_mapper/plugins/active_model.rb:7
from ./bin/../lib/mongo_mapper/embedded_document.rb:8
from ~/.rvm/gems/ruby-1.8.7-p299@mmtest/gems/activesupport-3.0.4/lib/active_support/core_ext/module/introspection.rb:70:in `const_get'
from ~/.rvm/gems/ruby-1.8.7-p299@mmtest/gems/activesupport-3.0.4/lib/active_support/core_ext/module/introspection.rb:70:in `local_constants'
from ~/.rvm/gems/ruby-1.8.7-p299@mmtest/gems/activesupport-3.0.4/lib/active_support/core_ext/module/introspection.rb:70:in `each'
from ~/.rvm/gems/ruby-1.8.7-p299@mmtest/gems/activesupport-3.0.4/lib/active_support/core_ext/module/introspection.rb:70:in `local_constants'
from ~/.rvm/gems/ruby-1.8.7-p299@mmtest/gems/activesupport-3.0.4/lib/active_support/core_ext/module/introspection.rb:68:in `each'
from ~/.rvm/gems/ruby-1.8.7-p299@mmtest/gems/activesupport-3.0.4/lib/active_support/core_ext/module/introspection.rb:68:in `local_constants'
from ~/.rvm/gems/ruby-1.8.7-p299@mmtest/gems/activesupport-3.0.4/lib/active_support/core_ext/module/introspection.rb:86:in `local_constant_names'
from (irb):1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment