lib/administrate/base_dashboard.rb in administrate-0.0.7 vs lib/administrate/base_dashboard.rb in administrate-0.0.8
- old
+ new
@@ -7,12 +7,28 @@
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