Sha256: 163e92efb3be38672d53ea007e5bf797f5100f87ab0a8085fafd113b60489c0a

Contents?: true

Size: 374 Bytes

Versions: 5

Compression:

Stored size: 374 Bytes

Contents

module Toy
  module MassAssignmentSecurity
    extend ActiveSupport::Concern
    include ActiveModel::MassAssignmentSecurity

    module InstanceMethods
      def initialize(attrs={})
        super(sanitize_for_mass_assignment(attrs || {}))
      end

      def update_attributes(attrs={})
        super(sanitize_for_mass_assignment(attrs || {}))
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
toystore-0.6.3 lib/toy/mass_assignment_security.rb
toystore-0.6.2 lib/toy/mass_assignment_security.rb
toystore-0.6.1 lib/toy/mass_assignment_security.rb
toystore-0.6 lib/toy/mass_assignment_security.rb
toystore-0.5 lib/toy/mass_assignment_security.rb