Class ProductDetailed
In: app/models/product_detailed.rb
Parent: Product

-*- coding: utf-8 -*-

Schema Information

Schema version: 87

Table name: products

 id                      :integer       not null, primary key
 domain_id               :integer       not null
 code                    :string(255)   not null
 name_po                 :integer       not null
 motion                  :string(255)
 parent_id               :integer
 lft                     :integer
 rgt                     :integer
 type                    :string(255)   not null
 model_name              :string(255)
 table_name              :string(255)
 detail_model_name       :string(255)
 detail_table_name       :string(255)
 parent_succeeded        :boolean
 pivot                   :string(255)
 workflow_enabled        :boolean
 workflow                :string(255)
 mail                    :boolean
 mail_skip_auth          :boolean
 document                :boolean
 document_name_method    :string(255)   default("name")
 document_number_method  :string(255)   default("id")
 document_content_method :string(255)   default("name")
 attachment              :boolean
 search                  :boolean
 csv                     :boolean
 initial_roleable_type   :string(255)
 scope_roleable_type     :string(255)
 created_at              :string(14)
 updated_at              :string(14)
 created_by              :integer
 updated_by              :integer
 created_in              :integer
 updated_in              :integer
 lock_version            :integer       default(0), not null

Methods

Public Instance methods

詳細のモデルのクラスを返す。

[Source]

    # File app/models/product_detailed.rb, line 53
53:   def detail_class
54:     detail_model_name.constantize
55:   end

[Source]

    # File app/models/product_detailed.rb, line 48
48:   def type_name
49:     s_("Product|Type 3")
50:   end

[Validate]