spec/tmp/app/models/sunrise/sunrise_structure.rb in sunrise-cms-0.3.0.rc vs spec/tmp/app/models/sunrise/sunrise_structure.rb in sunrise-cms-0.3.0.rc2
- old
+ new
@@ -1,14 +1,21 @@
# encoding: utf-8
class SunriseStructure < Sunrise::AbstractModel
self.resource_name = "Structure"
default_list_view :tree
+ available_list_view [:tree, :thumbs]
list :tree do
field :title
field :updated_at
field :id
+ end
+
+ show do
+ field :title
+ field :redirect_url
+ field :is_visible
end
edit do
field :title
field :redirect_url