Sha256: 221ca54c98cd2982f7e20fb2dae34a35e3079be6784e96c6c0710d6871c370b7
Contents?: true
Size: 409 Bytes
Versions: 2
Compression:
Stored size: 409 Bytes
Contents
require_dependency 'concerns/model/translates_value' module Ecm::Youtube class Category < ActiveRecord::Base include Concerns::Model::TranslatesValue translates_value :identifier # associations has_many :videos # validations validates :identifier, presence: true, uniqueness: true def human "#{self.class.model_name.human}: #{translated_identifier}" end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ecm_youtube-1.0.1 | app/models/ecm/youtube/category.rb |
ecm_youtube-1.0.0 | app/models/ecm/youtube/category.rb |