Sha256: 12c71d82f2c1b8c0947a07e5c6a63d4321b6a478e44e500890d0172db16469cf

Contents?: true

Size: 356 Bytes

Versions: 22

Compression:

Stored size: 356 Bytes

Contents

module Admin
  class Country < ActiveRecord::Base
    include Carnival::ModelHelper
    self.table_name = "countries"

    has_many :states
    has_many :cities

    accepts_nested_attributes_for :states, :reject_if => :all_blank, :allow_destroy => true
    accepts_nested_attributes_for :cities, :reject_if => :all_blank, :allow_destroy => true
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
carnival-0.0.59 test/dummy/app/models/admin/country.rb
carnival-0.0.58 test/dummy/app/models/admin/country.rb
carnival-0.0.57 test/dummy/app/models/admin/country.rb
carnival-0.0.56 test/dummy/app/models/admin/country.rb
carnival-0.0.55 test/dummy/app/models/admin/country.rb
carnival-0.0.54 test/dummy/app/models/admin/country.rb
carnival-0.0.53 test/dummy/app/models/admin/country.rb
carnival-0.0.52 test/dummy/app/models/admin/country.rb
carnival-0.0.51 test/dummy/app/models/admin/country.rb
carnival-0.0.50 test/dummy/app/models/admin/country.rb
carnival-0.0.49 test/dummy/app/models/admin/country.rb
carnival-0.0.48 test/dummy/app/models/admin/country.rb
carnival-0.0.47 test/dummy/app/models/admin/country.rb
carnival-0.0.45 test/dummy/app/models/admin/country.rb
carnival-0.0.44 test/dummy/app/models/admin/country.rb
carnival-0.0.43 test/dummy/app/models/admin/country.rb
carnival-0.0.42 test/dummy/app/models/admin/country.rb
carnival-0.0.41 test/dummy/app/models/admin/country.rb
carnival-0.0.40 test/dummy/app/models/admin/country.rb
carnival-0.0.39 test/dummy/app/models/admin/country.rb