Sha256: 7f2ecafefe7493083c1fc971fb58d3b9178ce91ac5d55a603011bbf500007658

Contents?: true

Size: 189 Bytes

Versions: 33

Compression:

Stored size: 189 Bytes

Contents

class Organisation < ActiveRecord::Base
  has_many :topics

  attr_protected []

  validates :title, :presence => true, :uniqueness => true

  def name # for RailsAdmin
    title
  end
end

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
gb_mapfish_appserver-2.0.0 app/models/organisation.rb
gb_mapfish_appserver-1.1.1 app/models/organisation.rb
gb_mapfish_appserver-1.1.0 app/models/organisation.rb
gb_mapfish_appserver-1.0.6 app/models/organisation.rb
gb_mapfish_appserver-1.0.5 app/models/organisation.rb
gb_mapfish_appserver-1.0.4 app/models/organisation.rb
gb_mapfish_appserver-1.0.3 app/models/organisation.rb
gb_mapfish_appserver-1.0.2 app/models/organisation.rb
gb_mapfish_appserver-1.0.1 app/models/organisation.rb
gb_mapfish_appserver-1.0.0 app/models/organisation.rb
gb_mapfish_appserver-0.9.7 app/models/organisation.rb
gb_mapfish_appserver-0.9.6 app/models/organisation.rb
gb_mapfish_appserver-0.9.5 app/models/organisation.rb
gb_mapfish_appserver-0.9.4 app/models/organisation.rb
gb_mapfish_appserver-0.9.3 app/models/organisation.rb
gb_mapfish_appserver-0.9.2 app/models/organisation.rb
gb_mapfish_appserver-0.9.1 app/models/organisation.rb
gb_mapfish_appserver-0.9.0 app/models/organisation.rb
gb_mapfish_appserver-0.8.7 app/models/organisation.rb
gb_mapfish_appserver-0.8.6 app/models/organisation.rb