Sha256: fd30ba15b74255f3cc92bee6d2ba7602743f5dd5da08cb6d92e3bce42cd41733
Contents?: true
Size: 1.06 KB
Versions: 10
Compression:
Stored size: 1.06 KB
Contents
module Adminpanel class TestObject < ActiveRecord::Base include Adminpanel::Base has_and_belongs_to_many :categories, join_table: "adminpanel_test_object_category" def self.form_attributes [ { 'name' => { 'type' => 'text_field', 'label' => 'name' } }, { 'category_ids' => { 'type' => 'has_many', 'model' => 'Adminpanel::Category', 'label' => 'has_many' } }, { 'boolean' => { 'type' => 'boolean', 'label' => 'boolean' } }, { 'text' => { 'type' => 'wysiwyg_field', 'label' => 'wysi' } }, { 'price' => { 'type' => 'wysiwyg_field', 'label' => 'wysi' } }, { 'quantity' => { 'type' => 'number_field', 'label' => 'wysi' } }, ] end end def self.display_name 'objeto' end end
Version data entries
10 entries across 10 versions & 1 rubygems