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'
+ def self.by_author_list_includes
+ {
+ :panel => {
+ :author => {}
}
}
end
true
end
- def visible? operators
- return false unless super
- self.owner_model.visible? operators
- end
-
def supply_default
self.x = 0
self.y = 0
self.picture.symbol_option
end
- def boost
- end
-
- def tag_element_type
- 'panel_picture'
- end
-
def self.list_where
'panels.publish > 0'
end