This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
In response to: | |
http://github.com/jnunemaker/mongomapper/issues/#issue/46 | |
My setup: | |
* MongoDB nightly OSX 32 bit build. | |
* Gems (installed via 'sudo gem install ...') | |
* mongomapper (0.3.1) | |
* mongodb-mongo (0.10.1) | |
* mongodb-mongo_ext (0.4.1) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Example | |
def start | |
puts "start self : #{self.inspect}" | |
Other.action | |
puts "start self : #{self.inspect}" | |
end | |
def callback | |
puts "callback self : #{self.inspect}" | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ ruby api.rb | |
/opt/local/lib/ruby/gems/1.8/gems/mongomapper-0.2.0/lib/mongomapper.rb:58:in `database': uninitialized class variable @@database in MongoMapper (NameError) | |
from /opt/local/lib/ruby/gems/1.8/gems/mongomapper-0.2.0/lib/mongomapper/document.rb:113:in `database' | |
from /opt/local/lib/ruby/gems/1.8/gems/mongomapper-0.2.0/lib/mongomapper/document.rb:122:in `collection' | |
from /opt/local/lib/ruby/gems/1.8/gems/mongomapper-0.2.0/lib/mongomapper/embedded_document.rb:40:in `ensure_index' | |
from /Users/david/dev/datcat-api/models/source.rb:5 | |
from /opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' | |
from /opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require' | |
from /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:156:in `require' | |
from /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:521:in `new_constants_in' |
NewerOlder