ポートレットのモデル。
対応する位置にある 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
インスタンスを破壊する。
# File app/models/portlet.rb, line 45 45: def destroy 46: cell.destroy unless cell.new_record? 47: super 48: end
[Validate]