Sha256: 64fd129807266722935b59c293bd04dc3d358947d7a15265159d157155c47f45

Contents?: true

Size: 255 Bytes

Versions: 1

Compression:

Stored size: 255 Bytes

Contents

class RecipesController < ApplicationController
  validates :create do
    string :name, required: true, except: %w[invalid wrong]
    integer :type, only: 1..3
    boolean :flag
    hash :config
    array :tags
  end

  def create
    head 201
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
weak_parameters-0.0.6 spec/dummy/app/controllers/recipes_controller.rb