class SunrisePost < Sunrise::AbstractModel self.resource_name = "Post" association :structure list :thumbs do field :title field :updated_at field :id group :search do field :title field :structure_id end end edit do field :title field :content field :is_visible end export do scope { Post.includes(:structure) } field :id field :title field :created_at field :structure_title field :structure_slug end end