Skip to content

Instantly share code, notes, and snippets.

View hegeltrigo's full-sized avatar
🏠
Working from home

Hegel Trigo hegeltrigo

🏠
Working from home
  • Bolivia
View GitHub Profile
path '/api/v1/projects/{id}' do
get 'Get one project' do
tags 'Projects'
security [ bearer: [] ]
consumes 'application/json', 'application/xml'
parameter name: :id, :in => :path, :type => :integer
response '200', 'get all projects' do
it "test skipe" do end
class Message
include ActiveModel::Validations
include ActiveModel::Conversion
extend ActiveModel::Naming
attr_accessor :name, :surname, :email, :phone, :country, :body, :subject
validates :name, :surname, :email, :phone, :country, :body, :presence => true
#searchable do
# text :name
# text :owner_name
# integer :designer_ids, :multiple => true do
# designers.map(&:id)
# end
# string :letters, :multiple => true do
# designers.map(&:name).map{|letter| letter.first.capitalize}
# end
# #integer :season_ids, :multiple => true do