mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-23 06:16:50 +00:00
Add Gemfile dependencies to ActiveRecord and sqlite3.
This commit is contained in:
parent
b175b04408
commit
83f11acd66
6
Gemfile
6
Gemfile
@ -25,5 +25,11 @@ else
|
|||||||
gem 'actionpack', gem_version
|
gem 'actionpack', gem_version
|
||||||
end
|
end
|
||||||
|
|
||||||
|
group :test do
|
||||||
|
gem 'activerecord'
|
||||||
|
gem 'sqlite3', platform: :ruby
|
||||||
|
gem 'activerecord-jdbcsqlite3-adapter', platform: :jruby
|
||||||
|
end
|
||||||
|
|
||||||
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
|
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
|
||||||
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
|
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
|
||||||
|
|||||||
1
test/fixtures/active_record.rb
vendored
1
test/fixtures/active_record.rb
vendored
@ -37,7 +37,6 @@ module ARModels
|
|||||||
|
|
||||||
class PostSerializer < ActiveModel::Serializer
|
class PostSerializer < ActiveModel::Serializer
|
||||||
attributes :id, :title, :body
|
attributes :id, :title, :body
|
||||||
params :title, :body
|
|
||||||
|
|
||||||
has_many :comments
|
has_many :comments
|
||||||
belongs_to :author
|
belongs_to :author
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user