ソースを参照

商品ID管理

abiao 3 年 前
コミット
8ee8e0b19b
共有1 個のファイルを変更した1 個の追加1 個の削除を含む
  1. 1 1
      app/models/product.rb

+ 1 - 1
app/models/product.rb

@@ -309,7 +309,7 @@ class Product < ActiveRecord::Base
         edit do
             field :id do
                 read_only do
-                    bindings[:object].id>0
+                    bindings[:object].id
                 end
             end
             field :name