Sha256: 8322855e446286de51d010fb18c8727fc45eaf982371abaefe5c5ee846540f6d
Contents?: true
Size: 831 Bytes
Versions: 15
Compression:
Stored size: 831 Bytes
Contents
# Dashboard class is used to tell Carload what models are needed to administrated, # which attributes are shown, etc. class Dashboard < Carload::Dashboard # There are two DSL block types: # # model :<model_name> do |spec| # # Whether model should be displayed when URL does not specify one # spec.default = <true_or_false> # # List of attributes that can be edited # spec.attributes.permitted = [...] # # List of attributes that will be shown on index page # spec.index_page.shows.attributes = [...] # # List of attributes with search terms that can be searched on index page (using Ransack gem) # spec.index_page.searches.attributes = [ { name: ..., term: ...}, ... ] # end # # associate :<model_name_a> => :<model_name_b>, choose_by: :<attribute_in_model_b> end
Version data entries
15 entries across 15 versions & 1 rubygems