Sha256: a8deb9aaee9000312c69222fe7eb8de8070760958f0bff66e8484c0c9fd807ad
Contents?: true
Size: 887 Bytes
Versions: 2
Compression:
Stored size: 887 Bytes
Contents
require "administrate/fields/belongs_to" require "administrate/fields/boolean" require "administrate/fields/date_time" require "administrate/fields/email" require "administrate/fields/has_many" require "administrate/fields/has_one" require "administrate/fields/image" require "administrate/fields/number" require "administrate/fields/polymorphic" require "administrate/fields/string" module Administrate class BaseDashboard include Administrate def attribute_types self.class::ATTRIBUTE_TYPES end def form_attributes self.class::FORM_ATTRIBUTES end def permitted_attributes form_attributes.map do |attr| attribute_types[attr].permitted_attribute(attr) end.uniq end def show_page_attributes self.class::SHOW_PAGE_ATTRIBUTES end def table_attributes self.class::TABLE_ATTRIBUTES end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
administrate-0.0.12 | lib/administrate/base_dashboard.rb |
administrate-0.0.11 | lib/administrate/base_dashboard.rb |