Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: master
Commits on Aug 20, 2014
  1. Merge pull request #4 from JordanFaust/add-support-for-associations

    authored
    Add support for associations
  2. @JordanFaust
  3. @JordanFaust

    Fix failing tests

    JordanFaust authored
    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

    authored
    Adds support for custom serializers
Commits on Jul 30, 2014
  1. @jdjkelly

    Adds support for custom serializers

    jdjkelly authored
    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

    authored
    Configurable default adapter
  2. @andrewle

    Remove some extra blank lines

    andrewle authored
    Snip snip!
  3. @andrewle

    Use configured adapter when rendering JSON

    andrewle authored
    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. @andrewle

    Adds configurable default adapter

    andrewle authored
    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

    authored
    Woo actioncontroller
  2. Re-add in rails 3.2

    authored
    it can fail for now, but we will want to support it
  3. UUUUGH.

    authored
    This versioning situation sucks.
  4. Depend on minitest 5

    authored
  5. Implement a NullAdapter.

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

    authored
    It'd be nice to keep some hygene here.
  7. Getting started: attributes.

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

    authored
    ugh.
  2. Remove Rails 3.2 support for now.

    authored
    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.
    
    :cry: :cry: :cry:
  3. Add generators.

    authored
    This seemed like the easiest place to start.
  4. Default to Rails 4.1

    authored
  5. Typo.

    authored
  6. :sweat_smile:

    authored
    Rails ~>4.0 is 4.1. :grimace:
  7. Set up the test helper and Gemfile.

    authored
    Now Travis will build across all the Rails-es.
  8. Set up minitest

    authored
  9. Generate a basic gem

    authored
Something went wrong with that request. Please try again.