class PanelPicture < Peta::Element
load_manifest
- include ElementInspire
belongs_to :panel
belongs_to :picture
validates :z, :presence => true, :numericality => {:greater_than => 0}
validates :t, :presence => true, :numericality => {:greater_than_or_equal_to => 0}
- def self.colum_structures
- @@colum_structures ||= {
- :width => {
- :helper => 'panels/size_helper'
- },
- :height => {
- :helper => 'panels/size_helper'
- }
- }
- end
-
def self.list_opt_for_panel
{
:panel_pictures => {
self.picture.symbol_option
end
- def boost
- end
-
- def tag_element_type
- 'panel_picture'
- end
-
def self.list_where
'panels.publish > 0'
end