Sha256: b66dd87de605cb1651b1fb63e66a724c31ec1028785e463fc6112179164fe77d

Contents?: true

Size: 311 Bytes

Versions: 4

Compression:

Stored size: 311 Bytes

Contents

module CitizenBudgetModel
  class Organization < ActiveRecord::Base
    acts_as_paranoid
    translates :name, fallbacks_for_empty_translations: true
    globalize_accessors

    has_many :simulators, dependent: :destroy
    has_many :users

    validates :name, 'citizen_budget_model/locale' => true
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
citizen_budget_model-0.0.4 app/models/citizen_budget_model/organization.rb
citizen_budget_model-0.0.3 app/models/citizen_budget_model/organization.rb
citizen_budget_model-0.0.2 app/models/citizen_budget_model/organization.rb
citizen_budget_model-0.0.1 app/models/citizen_budget_model/organization.rb