Santiago Pastorino
9f5e872621
Extract id_key to a method
2013-05-21 17:03:06 -07:00
Santiago Pastorino
a41de0286f
Passing options[:hash] is not public API of include!
2013-05-21 17:03:06 -07:00
Santiago Pastorino
ea3566955c
Remove option method just use the reader
2013-05-21 17:03:06 -07:00
Santiago Pastorino
5017fb686a
Associations doesn't depend on source serializer anymore
2013-05-21 17:03:06 -07:00
Santiago Pastorino
460a250984
Get rid of refine
2013-05-21 17:03:06 -07:00
Santiago Pastorino
1a8709d71c
Move caching to a new module
2013-05-21 17:03:06 -07:00
Santiago Pastorino
f179a27ed7
Add docs to serializable
2013-05-21 17:03:06 -07:00
Santiago Pastorino
aaa08c25ef
Make include_meta and meta_key private
2013-05-21 17:03:06 -07:00
Santiago Pastorino
76fead041f
Make Serializer reuse Serializable
2013-05-21 17:03:06 -07:00
Santiago Pastorino
0e876624ec
Move reusable code to a module
2013-05-21 17:03:05 -07:00
Santiago Pastorino
64ed05c484
Define serializer as DefaultSerializer if not set
2013-05-21 17:03:05 -07:00
Steve Klabnik
731528e1f6
Merge pull request #305 from dv/patch-2
...
Clarify disabling root for ArraySerializers
2013-05-21 08:36:20 -07:00
David Verhasselt
2cc598c74a
Update README.md
...
Setting AMS::Serializer.root = false doesn't automatically disable root for the ArraySerializer.
2013-05-21 12:00:39 +03:00
Steve Klabnik
1c4f3a70da
Merge pull request #301 from dv/patch-1
...
Update README.md
2013-05-14 14:39:10 -07:00
David Verhasselt
1614ef3b12
Create new section 'Disabling root' in README
2013-05-14 11:30:22 +03:00
David Verhasselt
358b6a8875
Update README.md
2013-05-14 10:42:28 +03:00
David Verhasselt
5504293776
Update README.md
...
I'm a bit embarrassed to admit that it took me a while to figure out this was a possibility, so I figured maybe this change will save some other poor chaps their time and/or pride.
2013-05-13 18:23:20 +03:00
Steve Klabnik
8b7e9d32d7
Merge pull request #299 from vanstee/bump-version-in-readme
...
Bump minor version specified in Gemfile
2013-05-11 08:14:08 -07:00
vanstee
6b6afb8a83
Bump minor version specified in Gemfile
2013-05-11 02:33:27 -04:00
Rafael Mendonça França
e6e1b3feaa
Merge pull request #297 from thetamind/patch-1
...
Fix code formatting in changelog
2013-05-08 12:38:36 -07:00
Matt Boehlig
2e0bee0c56
Fix code formatting in changelog
...
A code block example was not markdown formatted as code.
2013-05-08 14:34:16 -05:00
Steve Klabnik
fe84e0ad52
version bump 0.8.1
2013-05-05 17:35:51 -07:00
Steve Klabnik
c2f7af26f1
CHANGELOG for 0.8.1
2013-05-05 17:35:28 -07:00
Steve Klabnik
9c8ef8006b
Merge pull request #295 from SamSaffron/master
...
Allow serializers to implement options
2013-05-05 17:34:17 -07:00
Sam
597a2e3148
allow serializers to implement an options attribute
2013-05-06 10:30:46 +10:00
Steve Klabnik
a022d464f5
Bump to 0.8.0
2013-05-05 13:45:50 -07:00
Steve Klabnik
48e5ca29f1
Add Coveralls for code coverage.
2013-05-05 13:38:56 -07:00
Steve Klabnik
92a165b545
Update CHANGELOG for 0.8.0
2013-05-05 13:20:24 -07:00
Steve Klabnik
a0b07259ae
Add CodeClimate badge.
2013-05-05 13:04:39 -07:00
Steve Klabnik
bb8900e308
Merge pull request #264 from vad4msiu/features/root_element
...
Support for setting root element
2013-05-05 12:02:27 -07:00
Steve Klabnik
cffdbce072
Merge pull request #283 from morgoth/add-only-and-except-options-support
...
Add only and except options support
2013-05-05 12:00:59 -07:00
Steve Klabnik
da779c259f
Merge pull request #293 from goshakkk/mongoid-support
...
add support of mongoid collection serialization
2013-05-05 12:00:04 -07:00
Steve Klabnik
d87f10a6da
Merge pull request #294 from goshakkk/has-one
...
allow singular embed when serializing association
2013-05-05 11:58:50 -07:00
Gosha Arinich
1482081766
add support of mongoid collection serialization
2013-05-05 21:50:34 +03:00
Gosha Arinich
e8ae3e1bb3
allow singular embed when serializing association
...
Having
```ruby
has_one :post, embed: :ids
```
looks especially weird as it's a one-to-one association, hence there is
only one id. The following looks better:
```ruby
has_one :post, embed: :id
```
2013-05-05 11:02:42 +03:00
Steve Klabnik
22d72f76bc
Merge pull request #292 from goshakkk/patch-1
...
include serializer support into mongoid
2013-05-04 13:49:48 -07:00
Gosha Arinich
7f75b15ddd
include serializer support into mongoid
2013-05-04 22:43:11 +03:00
Steve Klabnik
7a39966e7e
Merge pull request #291 from silviorelli/patch-1
...
Update README.md [ci skip]
2013-05-02 07:14:37 -07:00
Silvio Relli
9ca71c2443
Update README.md
...
Fixed typo in documentation about the number of options to disable the root element for arrays
2013-05-02 16:27:06 +03:00
Wojciech Wnętrzak
489ebf2132
Added support for :only and :except methods.
...
It is possible now to filter returned attributes and associations by:
UserSerializer.new(user, only: [:first_name, :last_name])
UserSerializer.new(user, except: :first_name)
2013-04-27 21:29:26 +02:00
Steve Klabnik
329a38a7dd
Merge pull request #289 from teeparham/patch-2
...
fix travis links
2013-04-25 10:24:01 -07:00
Tee Parham
6b0ceba148
fix travis links
...
The existing links work, but redirect.
2013-04-24 21:55:50 -06:00
Steve Klabnik
497a887d59
Merge pull request #285 from bquorning/patch-1
...
Change gem.homepage to new location
2013-04-22 04:56:32 -07:00
Benjamin Quorning
01d82bc6b9
Change gem.homepage to new location
2013-04-22 12:56:16 +03:00
Steve Klabnik
2f21e77e90
Merge pull request #282 from morgoth/unify-calling-include_attribute
...
Unify way of calling include_attribute? in attibutes and association methods
2013-04-22 01:31:59 -07:00
Wojciech Wnętrzak
82f50ef81f
Unify way of calling include_attribute? in attibutes and association methods.
2013-04-20 23:28:33 +02:00
Steve Klabnik
9eb2e281c6
Merge pull request #280 from jasonkriss/typos
...
fix a couple minor typos
2013-04-18 13:50:06 -07:00
Jason Kriss
4e762ee8b5
fix a couple typos
2013-04-18 13:39:14 -07:00
Steve Klabnik
3aa7773ebc
Merge pull request #278 from vanstee/use-old-hash-syntax
...
Fix the build in 1.8.7
2013-04-16 20:06:28 -07:00
vanstee
ef6ab5f0c0
Switch back to the old hash syntax
...
Just fixed up a couple of hash literals in the tests so that the build
passes for 1.8.7
2013-04-16 22:55:57 -04:00