Sha256: e207c0d8db963783dacaea8116d6407f57285b704344e5e08293f97c4523cce5
Contents?: true
Size: 949 Bytes
Versions: 6
Compression:
Stored size: 949 Bytes
Contents
# 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 field :slug #field :headers, :partial => true field :parent_id, :collection => lambda { Structure.nested_set_options() {|i| "#{'–' * i.depth} #{i.title}"} }, :if => lambda { |s| s.moveable? } field :kind, :collection => lambda { StructureType.all }, :include_blank => false field :position, :collection => lambda { PositionType.all }, :include_blank => false field :is_visible, :as => :boolean group :meta_tags, :holder => :sidebar do field :tag_title field :tag_keywords field :tag_description end end end
Version data entries
6 entries across 3 versions & 1 rubygems