Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Commits on Feb 10, 2010
  1. @jnunemaker
  2. @jnunemaker

    Version bump to 0.7.0

    jnunemaker authored
  3. @jnunemaker
  4. @jnunemaker
  5. @jnunemaker
  6. @jnunemaker

    Minor: refactoring query.

    jnunemaker authored
Commits on Feb 9, 2010
  1. @jnunemaker
  2. @jnunemaker

    Added all query modifier. Refactored finder options and symbol operat…

    jnunemaker authored
    …ors. Also, fixed normalizing value when using symbol operators.
  3. @jnunemaker

    Indexes are once again created when model is loaded instead of storin…

    jnunemaker authored
    …g them up and creating using MongoMapper.ensure_indexes!.
    
    Removed all the MM.ensure_index and ensure_indexes! methods as they are no longer needed.
    If you were using those, update to ensure_index on the model or :index => true on the key.
  4. @jnunemaker

    Adding first round of convenience methods for connecting from Rails. …

    jnunemaker authored
    …Can now be something like this:
    
      MongoMapper.setup(YAML.load(Rails.root.join('config', 'database.yml')), Rails.env, {
        :logger    => Rails.logger),
        :passenger => true,
      })
    
    Instead of the much more verbose:
    
      config = YAML.load_file(Rails.root + 'config' + 'database.yml')[Rails.env]
    
      MongoMapper.connection = Mongo::Connection.new(config['host'], config['port'], :logger => Rails.logger)
      MongoMapper.database = config['database']
    
      if config['username'].present?
        MongoMapper.database.authenticate(config['username'], config['password'])
      end
    
      if defined?(PhusionPassenger)
        PhusionPassenger.on_event(:starting_worker_process) do |forked|
          MongoMapper.connection.connect_to_master if forked
        end
      end
Commits on Feb 5, 2010
  1. @jnunemaker
Commits on Feb 4, 2010
  1. @jnunemaker
  2. @jnunemaker
  3. @jnunemaker
  4. @jnunemaker
  5. @jnunemaker

    Renamed find_or_create to first_or_create which is more accurate. Add…

    jnunemaker authored
    …ed first_or_new. Tweaked destroy_all to use find_each.
  6. @jnunemaker
  7. @jnunemaker
  8. @jnunemaker

    Private change: Renamed assign_root_document to assign_references as …

    jnunemaker authored
    …it has more than one responsibility now.
Commits on Jan 29, 2010
  1. @jnunemaker
Commits on Jan 28, 2010
  1. @jnunemaker

    Updated to mongo 0.18.3. Overwrote Mongo::ObjectID#to_json to be more…

    jnunemaker authored
    … friendly for most people and aliased ruby driver to original_to_json.
  2. @jnunemaker

    Added :protected shortcut to key definition. Also added tests to make…

    jnunemaker authored
    … sure the SCI works fine with protected attributes.
  3. @jnunemaker
  4. @jnunemaker
  5. @CodeMonkeySteve @jnunemaker

    Added protected attribute plugin.

    CodeMonkeySteve authored jnunemaker committed
  6. @jnunemaker
  7. @magnetised @jnunemaker

    renamed _owner to _parent_document

    magnetised authored jnunemaker committed
  8. @magnetised @jnunemaker
  9. @magnetised @jnunemaker

    added back link to _owner for embedded docs

    magnetised authored jnunemaker committed
  10. @jnunemaker
  11. @chanks @jnunemaker

    Add key validation shortcut :not_in.

    chanks authored jnunemaker committed
  12. @chanks @jnunemaker

    Change key validation shortcut :within to :in, and add test to ensure…

    chanks authored jnunemaker committed
    … it works on embedded documents.
  13. @chanks @jnunemaker
  14. @jnunemaker
Commits on Jan 24, 2010
  1. @jnunemaker

    save! now takes options so you can pass safe in. Might switch the ! m…

    jnunemaker authored
    …ethods (create!, save! etc.) to just have :safe on by default. Fixes #166.
Something went wrong with that request. Please try again.