Sha256: 0ad519ab82f06516ea20f2f07a9fe51445c1320c52347adda2e1731573fd1d30

Contents?: true

Size: 310 Bytes

Versions: 1

Compression:

Stored size: 310 Bytes

Contents

class Widget < ActiveRecord::Base
  attr_similar [1, 2, 2, 3, 3],
    :address,
    :birthdate,
    :first_name,
    :last_name,
    :preferred_name

  private

  def widget_params
    params.permit(
      :address,
      :birthdate,
      :first_name,
      :last_name,
      :preferred_name
    )
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
attr_similar-0.0.2 test/dummy-rails4/app/models/widget.rb