Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Commits on Aug 18, 2011
Commits on Jul 4, 2011
Commits on May 1, 2011
Commits on Apr 29, 2011
  1. [ACTIVEMODEL] [FIX] Fixed wrong instantiation of objects in Slingshot…

    authored
    …::Results::Collection#initialize
    
    Previously, objects have been instantiated with the hash coming from ES, duplicating _source on next save into the index.
    
    Also, make the thing less magical and admit that ActiveRecord is a beast very, very hard to tame.
    There must be a way to work around the `id` attribute being protected.
  2. [ACTIVEMODEL] [BREAKING] Removed dynamic attributes for models (metho…

    authored
    …d_missing)
    
    Previously, Slingshot::Persistence models allowed for setting any attribute, dynamically.
    
    So, given a class like this
    
      class Article
        include Slingshot::Model::Persistence
        include Slingshot::Model::Search
        include Slingshot::Model::Callbacks
      end
    
    you could write
    
      article = Article.new :title => 'Whatever'
    
    and the `title` attribute was saved, indexed, etc.
    
    This is no longer the case, due to erratic behaviour and implementation.
    
    You have to _explicitely_ define the attributes for your model, with the `property` method, like this:
    
    class Article
      include Slingshot::Model::Persistence
      include Slingshot::Model::Search
      include Slingshot::Model::Callbacks
    
      property :title
    end
    
    Then you can write:
    
      article = Article.new :title => 'Whatever'
    
    Slingshot::Searchable models should not be touched by this, since the must implement their own
    getters, setters, and `MyModel#attributes` methods.
Commits on Apr 24, 2011
  1. [TEST] Correct class names for integration tests, change test Rake ta…

    authored
    …sk (trying to fix the test order, unit > integration)
Commits on Mar 2, 2011
Something went wrong with that request. Please try again.