Module Merb::ParamsFilter::RequestMixin
In: lib/merb-param-protection.rb

Methods

Attributes

trashed_params  [RW] 

Public Instance methods

Removes specified parameters of an object

Parameters

obj<Symbol>:Params key
attrs<Array>:Attributes to restrict

Example

  remove_params_from_object(:post, [:status, :author_id])

:api: plugin

Restricts parameters of an object

Parameters

obj<Symbol>:Params key
attrs<Array>:Attributes to restrict

Example

  restrict_params(:post, [:title, :body])

:api: plugin

[Validate]