OSDN Git Service

filer worked
[pettanr/pettanr.git] / lib / manifest / local / view / filer / body / file_body / file_item / caption / default.rb
index 6b4f5a5..dd66375 100644 (file)
@@ -11,7 +11,7 @@ module Manifest
                 include DefaultModule
                 attr :face, :link
                 
-                def initialize file_item, item
+                def initialize file_item, caption_manifest, item
                   super
                   @face = FaceFactory.factory self, self.caption_manifest.face, @item
                   @link = LinkFactory.factory self, self.caption_manifest.link, @item
@@ -22,7 +22,7 @@ module Manifest
                 end
                 
                 def item_template_file_name
-                  if self.caption_manifest.link.type == 'none'
+                  if @caption_manifest.link.type == 'none'
                     'default_without_link'
                   else
                     'default'