Sha256: ea8bf569062f33783630e57b3e7a646abaf845e419f1123ac664e25e0a870911
Contents?: true
Size: 389 Bytes
Versions: 9
Compression:
Stored size: 389 Bytes
Contents
class Article < ActiveRecord::Base attr_accessible :body, :title, :category, :tag_ids has_one_asset :image # Translations translates :title, :body # Validations validates :title, presence: true # Scopes scope :catA, where(:category => "A") scope :catB, where(:category => "B") scope :catC, where(:category => "C") # Bindings has_and_belongs_to_many :tags end
Version data entries
9 entries across 9 versions & 1 rubygems