summaryrefslogtreecommitdiff
path: root/lib/unfold_form.rb
diff options
context:
space:
mode:
authorskv <skv-headless@yandex.ru>2014-08-02 19:12:01 +0400
committerskv <skv-headless@yandex.ru>2014-08-14 15:48:14 +0400
commit4e4080016604e2c7ca9a5e75d6dd37d34b99cb09 (patch)
tree1a443fc6b7a16828c8a4b92d1724c2f72a4024f4 /lib/unfold_form.rb
parentfdd8e4507527badd875a40a0ab8a3ed47a03c764 (diff)
downloadgitlab-ce-4e4080016604e2c7ca9a5e75d6dd37d34b99cb09.tar.gz
diff unfold
Diffstat (limited to 'lib/unfold_form.rb')
-rw-r--r--lib/unfold_form.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/unfold_form.rb b/lib/unfold_form.rb
new file mode 100644
index 00000000000..46b12beeaaf
--- /dev/null
+++ b/lib/unfold_form.rb
@@ -0,0 +1,11 @@
+require_relative 'gt_one_coercion'
+
+class UnfoldForm
+ include Virtus.model
+
+ attribute :since, GtOneCoercion
+ attribute :to, GtOneCoercion
+ attribute :bottom, Boolean
+ attribute :unfold, Boolean, default: true
+ attribute :offset, Integer
+end