Sha256: 87b98df71742950e702d7d10ec7a7f9b73b863bc519ab1ff4cdb64bb7648dbd0
Contents?: true
Size: 789 Bytes
Versions: 1
Compression:
Stored size: 789 Bytes
Contents
require "active_support/concern" module Protobuf module ActiveRecord module MassAssignmentSecurity module Transformation extend ::ActiveSupport::Concern module ClassMethods # Filters protected attributes from the available attributes list. When # set through accessible attributes, returns the accessible attributes. # When set through protected attributes, returns the attributes minus any # protected attributes. # # :nodoc: def _filtered_attributes if accessible_attributes.present? accessible_attributes.to_a else self.attribute_names - protected_attributes.to_a end end end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
protobuf-activerecord-3.6.1 | lib/protobuf/active_record/mass_assignment_security/transformation.rb |