Module: Card::Set::Abstract::AssetFile::Format

Extended by:
Card::Set::AbstractFormat
Defined in:
platypus/tmp/set/gem-defaults/mod018-assets/abstract/asset_file.rb

Instance Method Summary collapse

Instance Method Details



55
56
57
58
# File 'platypus/tmp/set/gem-defaults/mod018-assets/abstract/asset_file.rb', line 55

def link_to_view view, text=nil, opts={}
  opts[:path] = { card: { type: card.type, content: card.db_content } }
  super view, (text || view), opts
end


50
51
52
53
# File 'platypus/tmp/set/gem-defaults/mod018-assets/abstract/asset_file.rb', line 50

def link_view opts={}
  opts[:path] = { card: { type: card.type, content: card.db_content } }
  link_to_card card.name, _render_title, opts
end