Sha256: 5968461d411f53a84f01a97b84f4f2703da41b114737e856483cff521bf0db2a
Contents?: true
Size: 667 Bytes
Versions: 2
Compression:
Stored size: 667 Bytes
Contents
require 'sunrise/config/base' require 'sunrise/config/has_groups' require 'sunrise/config/has_fields' module Sunrise module Config class List < Base include Sunrise::Config::HasFields include Sunrise::Config::HasGroups # Number of items listed per page register_instance_option :items_per_page do Sunrise::Config.default_items_per_page end # Column to sort register_instance_option :sort_column do abstract_model.model.primary_key end # Sort direction register_instance_option :sort_mode do Sunrise::Config.default_sort_mode end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
sunrise-cms-0.3.0.rc2 | lib/sunrise/config/list.rb |
sunrise-cms-0.3.0.rc | lib/sunrise/config/list.rb |