Sha256: cf25b0321095a0f3398556508449f3ab912c6d56cd234b3f52172f59f3cfd92f

Contents?: true

Size: 513 Bytes

Versions: 6

Compression:

Stored size: 513 Bytes

Contents

unless defined?(Node.ancestors.include?('Zena::Use::Relations::ClassMethods')) # FIXME: not sure here
  raise Exception.new("tags brick depends on 'Zena::Use::Relations'")
end
Node.send(:has_tags)

Link # make sure it is loaded before we reopen it
class Link
  safe_method :name => {:class => String, :nil => true}

  def name
    self[:comment]
  end
end

Zena::Use::QueryNode.add_filter_field('tag', :key => 'comment', :table => ['nodes', 'links', 'TABLE1.id = TABLE2.source_id AND TABLE2.relation_id IS NULL'])

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
zena-0.16.9 bricks/tags/patch/node.rb
zena-0.16.8 bricks/tags/patch/node.rb
zena-0.16.7 bricks/tags/patch/node.rb
zena-0.16.6 bricks/tags/patch/node.rb
zena-0.16.5 bricks/tags/patch/node.rb
zena-0.16.4 bricks/tags/patch/node.rb