test/dummy/app/models/adminpanel/item.rb in adminpanel-2.1.2 vs test/dummy/app/models/adminpanel/item.rb in adminpanel-2.1.3
- old
+ new
@@ -1,21 +1,21 @@
module Adminpanel
class Item < ActiveRecord::Base
include Adminpanel::Base
belongs_to :product
- belongs_to :category
-
+ belongs_to :category
+
def self.form_attributes
[
{
'product_id' => {
'type' => 'belongs_to',
'label' => 'product',
'placeholder' => 'product',
'model' => 'Adminpanel::Product',
}
- },
+ },
{
'category_id' => {
'type' => 'belongs_to',
'label' => 'category',
'placeholder' => 'category',