Add Gemfile dependencies to ActiveRecord and sqlite3.

This commit is contained in:
Lucas Hosseini 2015-08-31 05:46:04 +02:00
parent b175b04408
commit 83f11acd66
2 changed files with 6 additions and 1 deletions

View File

@ -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]

View File

@ -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