File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -19,9 +19,9 @@ Gem::Specification.new do |spec|
1919 spec . executables = spec . files . grep ( %r{^exe/} ) { |f | File . basename ( f ) }
2020 spec . require_paths = [ 'lib' ]
2121
22- spec . add_runtime_dependency 'jsonapi-resources' , '~> 0.10.2 '
22+ spec . add_runtime_dependency 'jsonapi-resources' , '~> 0.10.5 '
2323
24- spec . add_development_dependency 'bundler' , '~> 1.14' , '>= 1.14 '
24+ spec . add_development_dependency 'bundler' , '~> 2.0 '
2525 spec . add_development_dependency 'rake' , '~> 12.3' , '>= 12.3.3'
2626 spec . add_development_dependency 'rails' , ( ENV [ 'RAILS_VERSION' ] || '~> 5.2' ) , '>= 5.2.4'
2727 spec . add_development_dependency 'sqlite3' , '~> 1.4'
Original file line number Diff line number Diff line change @@ -9,6 +9,11 @@ class PostResource < JSONAPI::Resource
99 has_one :category
1010end
1111
12+ class AuthorResource < JSONAPI ::Resource
13+ model_name 'Person'
14+ has_many :posts
15+ end
16+
1217module V2
1318 class PostResource < ::PostResource ; end
1419end
You can’t perform that action at this time.
0 commit comments