{"action":"created","issue":{"url":"https://api.github.com/repos/RubyMoney/money-rails/issues/303","labels_url":"https://api.github.com/repos/RubyMoney/money-rails/issues/303/labels{/name}","comments_url":"https://api.github.com/repos/RubyMoney/money-rails/issues/303/comments","events_url":"https://api.github.com/repos/RubyMoney/money-rails/issues/303/events","html_url":"https://github.com/RubyMoney/money-rails/issues/303","id":63334924,"number":303,"title":"Compatibility with Mongoid 4?","user":{"login":"ogminor","id":7704247,"avatar_url":"https://avatars.githubusercontent.com/u/7704247?v=3","gravatar_id":"","url":"https://api.github.com/users/ogminor","html_url":"https://github.com/ogminor","followers_url":"https://api.github.com/users/ogminor/followers","following_url":"https://api.github.com/users/ogminor/following{/other_user}","gists_url":"https://api.github.com/users/ogminor/gists{/gist_id}","starred_url":"https://api.github.com/users/ogminor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ogminor/subscriptions","organizations_url":"https://api.github.com/users/ogminor/orgs","repos_url":"https://api.github.com/users/ogminor/repos","events_url":"https://api.github.com/users/ogminor/events{/privacy}","received_events_url":"https://api.github.com/users/ogminor/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-03-21T00:06:25Z","updated_at":"2015-07-14T13:49:17Z","closed_at":null,"body":"I'm having issues using this with Mongoid 4, is it still compatible?"},"comment":{"url":"https://api.github.com/repos/RubyMoney/money-rails/issues/comments/121242393","html_url":"https://github.com/RubyMoney/money-rails/issues/303#issuecomment-121242393","issue_url":"https://api.github.com/repos/RubyMoney/money-rails/issues/303","id":121242393,"user":{"login":"claudiotrindade","id":9157268,"avatar_url":"https://avatars.githubusercontent.com/u/9157268?v=3","gravatar_id":"","url":"https://api.github.com/users/claudiotrindade","html_url":"https://github.com/claudiotrindade","followers_url":"https://api.github.com/users/claudiotrindade/followers","following_url":"https://api.github.com/users/claudiotrindade/following{/other_user}","gists_url":"https://api.github.com/users/claudiotrindade/gists{/gist_id}","starred_url":"https://api.github.com/users/claudiotrindade/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/claudiotrindade/subscriptions","organizations_url":"https://api.github.com/users/claudiotrindade/orgs","repos_url":"https://api.github.com/users/claudiotrindade/repos","events_url":"https://api.github.com/users/claudiotrindade/events{/privacy}","received_events_url":"https://api.github.com/users/claudiotrindade/received_events","type":"User","site_admin":false},"created_at":"2015-07-14T13:49:17Z","updated_at":"2015-07-14T13:49:17Z","body":"With the ruby 2.2.0, rails 4.2.0 and mongoid 4.0.2, i'm having the following error:\r\n```\r\n/usr/local/rvm/gems/ruby-2.2.0@law/gems/activerecord-4.2.0/lib/active_record/connection_handling.rb:109:in `connection_pool': ActiveRecord::ConnectionNotEstablished (ActiveRecord::ConnectionNotEstablished)\r\n\tfrom /usr/local/rvm/gems/ruby-2.2.0@law/gems/activerecord-4.2.0/lib/active_record/connection_handling.rb:105:in `connection_config'\r\n\tfrom /usr/local/rvm/gems/ruby-2.2.0@law/gems/money-rails-1.4.1/lib/money-rails/hooks.rb:20:in `block in init'\r\n\tfrom /usr/local/rvm/gems/ruby-2.2.0@global/gems/activesupport-4.2.0/lib/active_support/lazy_load_hooks.rb:38:in `instance_eval'\r\n\tfrom /usr/local/rvm/gems/ruby-2.2.0@global/gems/activesupport-4.2.0/lib/active_support/lazy_load_hooks.rb:38:in `execute_hook'\r\n\tfrom /usr/local/rvm/gems/ruby-2.2.0@global/gems/activesupport-4.2.0/lib/active_support/lazy_load_hooks.rb:28:in `block in on_load'\r\n\tfrom /usr/local/rvm/gems/ruby-2.2.0@global/gems/activesupport-4.2.0/lib/active_support/lazy_load_hooks.rb:27:in `each'\r\n\tfrom /usr/local/rvm/gems/ruby-2.2.0@global/gems/activesupport-4.2.0/lib/active_support/lazy_load_hooks.rb:27:in `on_load'\r\n\tfrom /usr/local/rvm/gems/ruby-2.2.0@law/gems/money-rails-1.4.1/lib/money-rails/hooks.rb:7:in `init'\r\n\tfrom /usr/local/rvm/gems/ruby-2.2.0@law/gems/money-rails-1.4.1/lib/money-rails/railtie.rb:4:in `block in <class:Railtie>'\r\n\tfrom /usr/local/rvm/gems/ruby-2.2.0@law/gems/railties-4.2.0/lib/rails/initializable.rb:30:in `instance_exec'\r\n\tfrom /usr/local/rvm/gems/ruby-2.2.0@law/gems/railties-4.2.0/lib/rails/initializable.rb:30:in `run'\r\n\tfrom /usr/local/rvm/gems/ruby-2.2.0@law/gems/railties-4.2.0/lib/rails/initializable.rb:55:in `block in run_initializers'\r\n```\r\n\r\nThis error occurs only when using the gem 'money-rails'. If used only gems 'money' and 'monetize', the error does not occur.\r\n\r\nThe gem 'money-rails' is compatible with mongoid 4?"}}