OSDN Git Service

t#31779:element lib
[pettanr/pettanr.git] / app / models / ground_picture.rb
index e48b5e9..5042868 100644 (file)
@@ -1,4 +1,5 @@
 class GroundPicture < ActiveRecord::Base
+  include Element
   include ElementInspire
   belongs_to :panel
   belongs_to :picture
@@ -22,6 +23,32 @@ class GroundPicture < ActiveRecord::Base
     end
   end
   
+  def self.list_opt_for_panel
+    {
+      :ground_pictures => {
+        :picture => {:artist => {}, :license => {}}
+      }
+    }
+  end
+  
+  def self.show_opt_for_panel
+    {
+      :ground_pictures => {
+        :picture => {:artist => {}, :license => {}}
+      }
+    }
+  end
+  
+  def self.json_opt_for_panel
+    {
+      :picture => {:artist => {}, :license => {}}
+    }
+  end
+  
+  def self.has_picture?
+    true
+  end
+  
   def supply_default
     self.x = 0
     self.y = 0