Sha256: 6683080875071590ac9ef69e2fd789fc633761b4a671eba2cba0724a14ff2f27
Contents?: true
Size: 346 Bytes
Versions: 5
Compression:
Stored size: 346 Bytes
Contents
class Article < Content has_permalink :title before_save :check_internal_indentifier def to_param permalink end def check_internal_indentifier self.internal_identifier = self.permalink if self.internal_identifier.blank? end def combobox_display_value "#{title} (#{internal_identifier})" end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
knitkit-2.0.11 | app/models/article.rb |
knitkit-2.0.10 | app/models/article.rb |
knitkit-2.0.9 | app/models/article.rb |
knitkit-2.0.7 | app/models/article.rb |
knitkit-2.0.6 | app/models/article.rb |