Sha256: e9211fe9d3ab25c95ad28ced25d8b2dcd7d1a477b8272ade36b2323857183a0b

Contents?: true

Size: 354 Bytes

Versions: 1

Compression:

Stored size: 354 Bytes

Contents

class Brief::Epic
  include Brief::Model

  meta do
    title
    subheading
    status String, :in => %w(draft published)
  end

  content do
    title "h1:first-child"

    define_section "User Stories" do
      has_many :user_stories, "h2" => "title", "p:first-child" => "paragraph"
    end
  end

  actions do
    def custom_action
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
brief-1.1.0 spec/fixtures/example/models/epic.rb