Class: ZSS::Permit::Permitter

Inherits:
Object
  • Object
show all
Defined in:
lib/zss/permit.rb

Class Method Summary collapse

Class Method Details

.permit!(params, attributes) ⇒ Object



6
7
8
9
10
# File 'lib/zss/permit.rb', line 6

def self.permit! params, attributes
  params.keep_if do |k, _|
    Array(attributes).include? k.to_sym
  end
end