Sha256: 9d43d49c84d2a440155873381e862b7b5e355263af2ef0b88b155f3e29baf71c
Contents?: true
Size: 790 Bytes
Versions: 4
Compression:
Stored size: 790 Bytes
Contents
# -*- encoding : utf-8 -*- module RademadeAdmin module ModelOptions # Configure admin part of model # Support options # - model # - name # - parent_menu (todo extract to menu method) # - list # - form # - labels # def options(&options_block) configuration.instance_eval &options_block end def model_name configuration.model_name end def item_name configuration.item_name end def parent_menu_item configuration.parent_menu_item end def model_class configuration.model_class end def model_info @model_info ||= Model::Graph.instance.model_info(model_class) end def configuration @configuration ||= Model::Configuration.new(self) end end end
Version data entries
4 entries across 4 versions & 1 rubygems