Sha256: 9fab200bd30bdda393dd4c3c7ca8177a346de17c6c55acde6153488d8fd9b625
Contents?: true
Size: 289 Bytes
Versions: 1
Compression:
Stored size: 289 Bytes
Contents
class RecipesController < ApplicationController validates :create do string :name, required: true, except: %w[invalid wrong] integer :type, only: 0..3 integer :number, only: [0, 1] 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.7 | spec/dummy/app/controllers/recipes_controller.rb |