Sha256: 649a8b21c1992ffd345a3ee5006bb8504e310df56b2f51b722208d086228e963

Contents?: true

Size: 136 Bytes

Versions: 1

Compression:

Stored size: 136 Bytes

Contents

class Country < ActiveRecord::Base

  validates :name, presence: true

  def permited_attributes
    [:name, :code, :active]
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
resources-1.1.1 test/dummy/app/models/country.rb