Sha256: 364b1cd878b7df47a105ca27801e3d6e6138f9645873e09274e4963ee5f579c3

Contents?: true

Size: 426 Bytes

Versions: 99

Compression:

Stored size: 426 Bytes

Contents

require "csv"
require "safe_html"

class LocalInteraction
  include Mongoid::Document

  LGIL_CODE_PROVIDING_INFORMATION = 8

  field :lgsl_code, type: Integer
  field :lgil_code, type: Integer
  field :url,       type: String

  GOVSPEAK_FIELDS = []

  embedded_in :local_authority

  validates_presence_of :url, :lgil_code, :lgsl_code
  validates_uniqueness_of :lgil_code, :scope => :lgsl_code
  validates_with SafeHtml
end

Version data entries

99 entries across 99 versions & 1 rubygems

Version Path
govuk_content_models-28.0.0 app/models/local_interaction.rb
govuk_content_models-27.2.0 app/models/local_interaction.rb
govuk_content_models-27.1.0 app/models/local_interaction.rb
govuk_content_models-27.0.0 app/models/local_interaction.rb
govuk_content_models-26.2.0 app/models/local_interaction.rb
govuk_content_models-26.1.0 app/models/local_interaction.rb
govuk_content_models-26.0.0 app/models/local_interaction.rb
govuk_content_models-25.0.0 app/models/local_interaction.rb
govuk_content_models-24.2.0 app/models/local_interaction.rb
govuk_content_models-24.1.0 app/models/local_interaction.rb
govuk_content_models-24.0.1 app/models/local_interaction.rb
govuk_content_models-24.0.0 app/models/local_interaction.rb
govuk_content_models-23.0.0 app/models/local_interaction.rb
govuk_content_models-22.2.0 app/models/local_interaction.rb
govuk_content_models-22.1.2 app/models/local_interaction.rb
govuk_content_models-22.1.1 app/models/local_interaction.rb
govuk_content_models-22.1.0 app/models/local_interaction.rb
govuk_content_models-22.0.0 app/models/local_interaction.rb
govuk_content_models-21.0.0 app/models/local_interaction.rb
govuk_content_models-20.2.0 app/models/local_interaction.rb