Sha256: 9a1fa18bca1838ded62c1a9c3e18c9c11949eeba3e435241dc204b1b3af13659

Contents?: true

Size: 260 Bytes

Versions: 8

Compression:

Stored size: 260 Bytes

Contents

module HelpPopups
  class Topic < ActiveRecord::Base
    attr_accessible :body, :code, :parent_id, :title
    
    validates :body, :presence => true
    validates :code, :presence => true, :uniqueness => true
    validates :title, :presence => true
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
help_popups-1.0.5 app/models/help_popups/topic.rb
help_popups-1.0.4 app/models/help_popups/topic.rb
help_popups-1.0.3 app/models/help_popups/topic.rb
help_popups-1.0.2 app/models/help_popups/topic.rb
help_popups-1.0.1 app/models/help_popups/topic.rb
help_popups-1.0.0 app/models/help_popups/topic.rb
help_popups-0.1.1 app/models/help_popups/topic.rb
help_popups-0.1.0 app/models/help_popups/topic.rb