Sha256: 7474c201b7afe886c7a0c68af5cc406e7312305602de4b1cc866a912c78acf2f

Contents?: true

Size: 227 Bytes

Versions: 10

Compression:

Stored size: 227 Bytes

Contents

class Article < PostType
  fields :title, :body, :category
  required :body
  primary :body
  heading :title
  
  def self.detect?(text)
    true # it can always be an article, so make this last in the preferred order
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
myobie-turbine-core-0.1.0 lib/types/article.rb
myobie-turbine-core-0.1.1 lib/turbine-core/types/article.rb
myobie-turbine-core-0.2.0 lib/turbine-core/types/article.rb
myobie-turbine-core-0.3.0 lib/turbine-core/types/article.rb
myobie-turbine-core-0.3.1 lib/turbine-core/types/article.rb
myobie-turbine-core-0.3.3 lib/turbine-core/types/article.rb
myobie-turbine-core-0.3.5 lib/turbine-core/types/article.rb
myobie-turbine-core-0.3.6 lib/turbine-core/types/article.rb
myobie-turbine-core-0.3.7 lib/turbine-core/types/article.rb
myobie-turbine-core-0.4.0 lib/turbine-core/types/article.rb