Sha256: 22ed41a15dae9d44d2704d0e0b28a7ac6e149e269a7cd77c6a66b24e518357ef
Contents?: true
Size: 802 Bytes
Versions: 5
Compression:
Stored size: 802 Bytes
Contents
module Adminsite class AdminsitePageAdminConfig < Adminsite::AdminConfig::Base def attributes_index [ :title, :url, :requires_login, :cacheable, :page_layout, :updated_at ] end def attributes_edit(resource = nil) [ :title, :url, :requires_login, :cacheable, :page_layout, :body => {:input_html => {:class => 'code html'}} ] end def attributes_show(resource = nil) attributes_edit end def attributes_search attributes_index end def default_member_actions(resource = nil) [ :edit, :destroy] end def label_attribute(resource = nil) :title end def scopes [:all, :cacheable, :requires_login ] end end end
Version data entries
5 entries across 5 versions & 1 rubygems