Permalink
Switch branches/tags
Nothing to show
Commits on Aug 20, 2014
  1. Merge pull request #4 from JordanFaust/add-support-for-associations

    steveklabnik committed Aug 20, 2014
    Add support for associations
  2. Fix failing tests

    JordanFaust committed Aug 15, 2014
    Some tests were failing due to new being called on an already
    instantiated object and the configuration for the default_adapter
    sticking around after tests causing random test failures.
Commits on Aug 13, 2014
  1. Merge pull request #3 from jdjkelly/annotation

    steveklabnik committed Aug 13, 2014
    Adds support for custom serializers
Commits on Jul 30, 2014
  1. Adds support for custom serializers

    jdjkelly committed Jul 28, 2014
    This commit implements the 0.9.x style of 
    explicitly passing a serializer to a JSON render
    call in a controller as an option to `render :json`
    
    Additionally, this commit adds Yard for docs
Commits on Jul 26, 2014
  1. Merge pull request #1 from andrewle/configurable_default_adapter

    steveklabnik committed Jul 26, 2014
    Configurable default adapter
  2. Remove some extra blank lines

    andrewle committed Jul 26, 2014
    Snip snip!
  3. Use configured adapter when rendering JSON

    andrewle committed Jul 26, 2014
    Update our JSON renderer to use the configured `default_adapter` when
    rendering JSON. This patch also updates the ActionController
    serialization test to explicitly use the NullAdapter so that we can be
    robust against changes to whatever our out-of-the-box `default_adapter`
    may be.
  4. Adds configurable default adapter

    andrewle committed Jul 26, 2014
    This patch adds the ability to configure a default adapter on
    ActiveModel::Serializer as described in the README:
    
    ```ruby
    ActiveModel::Serializer.default_adapter = ActiveModel::Serializer::Adapter::HalAdapter
    ```
    
    The current default adapter, when no other default adapter is specified
    (or when the default adapter is set to nil), is set to the NullAdapter
    because that's all that we have at the moment to work with. Future work
    should change the out-of-the-box default adapter to the `JsonApiAdapter`
    when we have this adapter ready.
Commits on Jul 9, 2014
  1. Implement basic rendering

    steveklabnik committed Jul 9, 2014
    Woo actioncontroller
  2. Re-add in rails 3.2

    steveklabnik committed Jul 9, 2014
    it can fail for now, but we will want to support it
  3. UUUUGH.

    steveklabnik committed Jul 9, 2014
    This versioning situation sucks.
  4. Depend on minitest 5

    steveklabnik committed Jul 9, 2014
  5. Implement a NullAdapter.

    steveklabnik committed Jul 9, 2014
    This adapter basically doesn't do anything, and just serializes
    the attributes into plain old JSON.
  6. Move serializer tests into their own directory.

    steveklabnik committed Jul 9, 2014
    It'd be nice to keep some hygene here.
  7. Getting started: attributes.

    steveklabnik committed Jul 9, 2014
    Super super basic collection of attributes. Nothing fancy.
Commits on Jul 5, 2014
  1. Fix link to arel.

    steveklabnik committed Jul 5, 2014
    ugh.
  2. Remove Rails 3.2 support for now.

    steveklabnik committed Jul 5, 2014
    It is impossible to run our tests on both Rails 3.2 and Rails 4:
    
    1. Rails 3.2 relies on test/unit, which is MiniTest 4.
    2. Rails 4 relies on MiniTest 5.
    3. MiniTest 5 is not compatible with test/unit.
    
    😢 😢 😢
  3. Add generators.

    steveklabnik committed Jul 5, 2014
    This seemed like the easiest place to start.
  4. Default to Rails 4.1

    steveklabnik committed Jul 5, 2014
  5. Typo.

    steveklabnik committed Jul 5, 2014
    ❤️ @wycats
  6. 😅

    steveklabnik committed Jul 5, 2014
    Rails ~>4.0 is 4.1. :grimace:
  7. Set up the test helper and Gemfile.

    steveklabnik committed Jul 5, 2014
    Now Travis will build across all the Rails-es.
  8. Set up minitest

    steveklabnik committed Jul 5, 2014
  9. Generate a basic gem

    steveklabnik committed Jul 5, 2014