Sha256: 34a1e624cd77d192172ac104851af4e45d93e9386a3126831b459c9390b1c6d3
Contents?: true
Size: 480 Bytes
Versions: 3
Compression:
Stored size: 480 Bytes
Contents
class Article < PostType fields :title, :body, :category required :body primary :body heading :title html do haml %Q{ - unless blank_attr?(:title) %h2= get_attr(:title) - unless blank_attr?(:category) %p.category Category: = get_attr(:category) ~ get_attr(:body) }.indents(true) end def self.detect?(text) true # it can always be an article, so make this last in the preferred order end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
myobie-turbine-core-0.5.1 | lib/turbine-core/types/article.rb |
myobie-turbine-core-0.5.2 | lib/turbine-core/types/article.rb |
myobie-turbine-core-0.5.3 | lib/turbine-core/types/article.rb |