mirror of
https://github.com/ditkrg/rswag.git
synced 2026-01-25 07:16:40 +00:00
wip:swagger-based dsl for rspec
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
class Blog < ActiveRecord::Base
|
||||
attr_accessible :content, :title
|
||||
|
||||
validates :content, presence: true
|
||||
|
||||
def as_json(options)
|
||||
{
|
||||
title: title,
|
||||
|
||||
Reference in New Issue
Block a user