Sha256: d4e493798d837d4a42bbde271db4d20b575d51df341b8e8da89c1da9440664d2

Contents?: true

Size: 322 Bytes

Versions: 18

Compression:

Stored size: 322 Bytes

Contents

class Article < Content

  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

18 entries across 18 versions & 1 rubygems

Version Path
knitkit-3.2.0 app/models/article.rb
knitkit-3.0.0 app/models/article.rb
knitkit-2.1.15 app/models/article.rb
knitkit-2.1.14 app/models/article.rb
knitkit-2.1.13 app/models/article.rb
knitkit-2.1.12 app/models/article.rb
knitkit-2.1.11 app/models/article.rb
knitkit-2.1.10 app/models/article.rb
knitkit-2.1.9 app/models/article.rb
knitkit-2.1.8 app/models/article.rb
knitkit-2.1.7 app/models/article.rb
knitkit-2.1.6 app/models/article.rb
knitkit-2.1.5 app/models/article.rb
knitkit-2.1.4 app/models/article.rb
knitkit-2.1.3 app/models/article.rb
knitkit-2.1.2 app/models/article.rb
knitkit-2.1.1 app/models/article.rb
knitkit-2.1.0 app/models/article.rb