Steve Klabnik
|
410eacc30e
|
Merge pull request #677 from ride/embed-ids-option
Add support for embed: :ids option for in associations
|
2014-10-14 11:39:09 -04:00 |
|
Steve Klabnik
|
341cca7d8a
|
Merge pull request #681 from quainjn/inherited-serializer
Check superclasses for Serializers
|
2014-10-14 11:36:02 -04:00 |
|
Steve Klabnik
|
9d344b1dd7
|
Merge pull request #680 from NullVoxPopuli/add-root-option
Add support for root keys
|
2014-10-14 04:06:50 -04:00 |
|
Jake Quain
|
c0166f3026
|
Check superclasses for Serializers
|
2014-10-13 17:39:54 -06:00 |
|
NullVoxPopuli
|
7338b62b02
|
add support for root keys
remove debugging gem
fix white space
|
2014-10-13 13:27:09 -04:00 |
|
Guillermo Iguaran
|
188336522f
|
Add support for embed: :ids option for in associations
|
2014-10-10 16:48:55 -05:00 |
|
Steve Klabnik
|
97023db904
|
Merge pull request #675 from tricknotes/support-rails4.2
Support Rails 4.2.0
|
2014-10-09 12:39:07 -04:00 |
|
Ryunosuke SATO
|
4fe9790bfa
|
Support Rails 4.2.0
This patch is the same fixes as #655 and #663 .
|
2014-10-10 00:52:59 +09:00 |
|
Steve Klabnik
|
c5294086ea
|
Merge pull request #667 from ride/require-only-activemodel
Require only activemodel instead of full rails
|
2014-09-29 18:23:47 -04:00 |
|
Guillermo Iguaran
|
771e9edccb
|
Require only activemodel instead of full rails
|
2014-09-29 15:46:57 -05:00 |
|
Steve Klabnik
|
6ab0cf3a4f
|
Merge pull request #653 from alexgenco/test_path_fix
Add "_test" suffix to JsonApi::HasManyTest filename.
|
2014-09-20 17:45:29 -04:00 |
|
Alex Genco
|
0eed2b051a
|
Add "_test" suffix to JsonApi::HasManyTest filename.
"rake test" was previously skipping this file because it didn't have the
proper suffix.
|
2014-09-14 13:02:09 -07:00 |
|
Steve Klabnik
|
325dc3a812
|
Merge pull request #631 from craiglittle/fix-build-badge
Update build badge URL
|
2014-09-03 12:08:00 -04:00 |
|
Craig Little
|
76ce2130e7
|
Update build badge URL
s/steveklabnik/rails-api/
|
2014-09-03 00:43:58 -07:00 |
|
Jordan Faust
|
ad0859e262
|
Add DSL for urls
|
2014-09-01 13:44:22 -05:00 |
|
Steve Klabnik
|
98a3e5696e
|
Merge pull request #612 from bolshakov/feature/adapter
Feature/adapter
|
2014-08-31 19:58:25 -04:00 |
|
Tema Bolshakov and Dmitry Myaskovskiy
|
71a43a432a
|
Pass options to associations
|
2014-08-29 20:16:11 +04:00 |
|
Tema Bolshakov and Dmitry Myaskovskiy
|
258b5953e2
|
clean up code
|
2014-08-29 19:47:46 +04:00 |
|
Tema Bolshakov and Dmitry Myaskovskiy
|
45a47a1c4d
|
safe_constantize instead of rescue
|
2014-08-29 19:47:29 +04:00 |
|
Tema Bolshakov and Dmitry Myaskovskiy
|
ff37b6260d
|
test for json adapter
|
2014-08-29 19:40:01 +04:00 |
|
Tema Bolshakov
|
7293072670
|
Revert "Remove 1.9.3 from CI build as we dropped support"
This reverts commit 85b4b85bb3.
|
2014-08-29 13:48:39 +04:00 |
|
Tema Bolshakov
|
77847d7c02
|
User String#constantize instead of Object.const_get
|
2014-08-29 13:48:06 +04:00 |
|
Tema Bolshakov
|
139609355f
|
Object.const_get differs on 2.0 and 2.1.2. So rescue from NameError
|
2014-08-29 13:01:01 +04:00 |
|
Tema Bolshakov
|
b4a313e6d8
|
Merge remote-tracking branch 'upstream/master' into feature/adapter
|
2014-08-29 12:55:20 +04:00 |
|
Tema Bolshakov
|
e45e5a82b7
|
Remove 'Adapter' suffix from adapters since they are in Adapter:: namespace
|
2014-08-29 11:40:56 +04:00 |
|
Tema Bolshakov
|
6bb4501f67
|
JsonApi adapter: serialize association
|
2014-08-29 11:37:27 +04:00 |
|
Tema Bolshakov
|
6496b08464
|
rename simple adapter to json
|
2014-08-29 11:01:39 +04:00 |
|
Tema Bolshakov
|
3dd4928279
|
* Do not ingerit array serializer from Serializer
* Tests for ArraySerializer
|
2014-08-29 10:58:14 +04:00 |
|
Tema Bolshakov
|
85ff8123fd
|
Include Enumerable to ArraySerializer
|
2014-08-28 23:03:28 +04:00 |
|
Tema Bolshakov
|
85b4b85bb3
|
Remove 1.9.3 from CI build as we dropped support
|
2014-08-28 22:58:30 +04:00 |
|
Tema Bolshakov
|
c1fdfc1cdc
|
First try to implement ArraySerializer
|
2014-08-28 19:16:24 +04:00 |
|
Tema Bolshakov
|
1b718b6d48
|
fix spelling
|
2014-08-28 18:56:22 +04:00 |
|
Tema Bolshakov
|
597765e3b0
|
start implementing json_api adapter to understand how associations should work
|
2014-08-28 18:55:27 +04:00 |
|
Tema Bolshakov
|
466c7d5dd8
|
Wrap association into Serializers
|
2014-08-28 18:46:19 +04:00 |
|
Steve Klabnik
|
f29e78f4c8
|
Merge pull request #615 from tpitale/fix-serializer-lookup
Rails does not support const_defined? in development mode
|
2014-08-27 16:20:30 -04:00 |
|
Steve Klabnik
|
eed23620c3
|
Merge pull request #613 from spk/readme_fix_attributes
README: typo fix on attributes
|
2014-08-27 16:19:27 -04:00 |
|
Steve Klabnik
|
ba9b151b6b
|
Merge pull request #614 from arthurnn/fix_build_40
Fix rails 4.0.x build.
|
2014-08-27 16:19:15 -04:00 |
|
Tony Pitale
|
dee2f1969e
|
Rails does not support const_defined? in development mode;
Use const_get instead, and rescue NameError
|
2014-08-27 14:42:41 -04:00 |
|
Arthur Neves
|
373c35959a
|
Add .ruby-version to gitignore
|
2014-08-27 10:54:38 -04:00 |
|
Arthur Neves
|
fbf8633041
|
Dont allow failures on 4.0.x
|
2014-08-27 10:54:14 -04:00 |
|
Arthur Neves
|
c8d9ee4ae3
|
Fix rails 4.0.x build
|
2014-08-27 10:53:34 -04:00 |
|
Laurent Arnoud
|
f02f5b767a
|
README: typo fix on attributes
|
2014-08-27 11:48:14 +02:00 |
|
Tema Bolshakov
|
fa4ee9d645
|
Add Serializer#associations
|
2014-08-27 11:21:01 +04:00 |
|
Tema Bolshakov
|
b1f7a5ccda
|
Move Adapter.adapter_for to Serializer.adapter
|
2014-08-27 11:02:39 +04:00 |
|
Tema Bolshakov
|
a6f9dae560
|
Concrete adapter should provide serializable hash for Adapter#to_json method
|
2014-08-27 09:33:14 +04:00 |
|
Tema Bolshakov
|
2c7906e9ff
|
Test for NullAdapter#serializable_hash
|
2014-08-27 09:15:54 +04:00 |
|
Tema Bolshakov
|
7b7d4d8907
|
Test for SimpleAdapter#serializable_hash
|
2014-08-27 09:15:07 +04:00 |
|
Tema Bolshakov
|
553c470e10
|
Serializer should be available wiithing adapter to inspect attributes and assotions
|
2014-08-27 09:09:01 +04:00 |
|
Tema Bolshakov
|
6cc4fa0258
|
* Configure adapter using ActiveModel::Serializer.config.adapter
* Get adapter instance using ActiveModel::Serializer::Adapter.adapter_for(serializer)
|
2014-08-27 09:05:28 +04:00 |
|
Tema Bolshakov
|
56725b45a6
|
Add NullAdapater
|
2014-08-27 08:41:45 +04:00 |
|