Sha256: 3534954ccc55e4a5314db6f341f0d10aa43b903706f239159a5edd7eef6bc01f
Contents?: true
Size: 567 Bytes
Versions: 1
Compression:
Stored size: 567 Bytes
Contents
# frozen_string_literal: true class SunriseWritingDirectory < Sunrise::AbstractModel self.resource_name = 'WritingDirectory' default_index_view :thumbs available_index_views [:tree, :thumbs] index :tree do field :title field :updated_at field :id end index :thumbs do field :url field :created_at field :sort_order end form do field :title field :url field :sort_order field :parent_id, collection: -> { WritingDirectory.roots { |i| "#{'–' * i.depth} #{i.title}" } }, if: ->(s) { s.moveable? } end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
translation_cms-0.1.5 | app/sunrise/sunrise_writing_directory.rb |