Sha256: 6b95008023dd1a2fce61a13b131a68a8ca7f7493eb02ba8dc94ef9ead95cfe06
Contents?: true
Size: 736 Bytes
Versions: 3
Compression:
Stored size: 736 Bytes
Contents
module Adminpanel class Mug < ActiveRecord::Base include Adminpanel::Base validates_presence_of :name def self.form_attributes [ { 'name' => { 'type' => 'text_field', 'label' => 'name', 'placeholder' => 'name' } }, { 'number' => { 'type' => 'number_field', 'label' => 'number', 'placeholder' => 'number' } }, ] end def self.display_name 'Taza' #singular end # def self.icon # "truck" # fa-{icon} # end def self.routes_options { except:[:new, :create, :edit, :update, :destroy, :show], path:'tazas'} end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
adminpanel-2.4.0 | test/dummy/app/models/adminpanel/mug.rb |
adminpanel-2.3.1 | test/dummy/app/models/adminpanel/mug.rb |
adminpanel-2.3.0 | test/dummy/app/models/adminpanel/mug.rb |