Sha256: b52612adf65c6357f370a7914dfd58f7ae83ccc64b9b711851dcb1d6624b41ed

Contents?: true

Size: 216 Bytes

Versions: 3

Compression:

Stored size: 216 Bytes

Contents

class RecipesController < ApplicationController
  validates :create do
    string :name, required: true
    integer :type
    boolean :flag
    hash :config
    array :tags
  end

  def create
    head 201
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
weak_parameters-0.0.4 spec/dummy/app/controllers/recipes_controller.rb
weak_parameters-0.0.3 spec/dummy/app/controllers/recipes_controller.rb
weak_parameters-0.0.2 spec/dummy/app/controllers/recipes_controller.rb