Class Portlet
In: app/models/portlet.rb
Parent: ActiveRecord::Base

ポートレットのモデル。

Methods

cell   destroy  

Included Modules

PortlettableDelegator

Public Instance methods

対応する位置にある cell を返す。

[Source]

    # File app/models/portlet.rb, line 40
40:   def cell
41:     @cell ||= Cell.find_or_initialize_by_pane_id_and_position(pane_id, position)
42:   end

インスタンスを破壊する。

[Source]

    # File app/models/portlet.rb, line 45
45:   def destroy
46:     cell.destroy unless cell.new_record?
47:     super
48:   end

[Validate]