Skip to content

Instantly share code, notes, and snippets.

Avatar
🐇
ʕ ◔ϖ◔ʔ < I'm a Rubyist.

Masayuki Izumi izumin5210

🐇
ʕ ◔ϖ◔ʔ < I'm a Rubyist.
View GitHub Profile
View multiparameter_attribute_assignment.rb
# app/models/concerns/multiparameter_attribute_assignment.rb
module MultiparameterAttributeAssignment
include ActiveModel::ForbiddenAttributesProtection
def initialize(params = {})
assign_attributes(params)
end
def assign_attributes(new_attributes)