spec/fixtures/example/models/epic.rb in brief-1.0.0 vs spec/fixtures/example/models/epic.rb in brief-1.1.0
- old
+ new
@@ -1,16 +1,22 @@
class Brief::Epic
include Brief::Model
meta do
- title String
+ 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