# File lib/active_model/mass_assignment_security.rb, line 119 def attr_protected(*args) options = args.extract_options! role = options[:as] || :default self._protected_attributes = protected_attributes_configs.dup Array(role).each do |name| self._protected_attributes[name] = self.protected_attributes(name) + args end self._uses_mass_assignment_security = true self._active_authorizer = self._protected_attributes end