Sha256: 13d1af161880510b1af68e11bd2e1a400f200bdb208bcd47b7eb573d6da924b9

Contents?: true

Size: 406 Bytes

Versions: 71

Compression:

Stored size: 406 Bytes

Contents

# frozen_string_literal: true

module Alchemy
  class EssenceNode < BaseRecord
    acts_as_essence(
      ingredient_column: :node,
      preview_text_column: :node_name,
      belongs_to: {
        class_name: "Alchemy::Node",
        foreign_key: :node_id,
        inverse_of: :essence_nodes,
        optional: true,
      },
    )

    delegate :name, to: :node, prefix: true, allow_nil: true
  end
end

Version data entries

71 entries across 71 versions & 1 rubygems

Version Path
alchemy_cms-5.3.8 app/models/alchemy/essence_node.rb
alchemy_cms-6.0.9 app/models/alchemy/essence_node.rb
alchemy_cms-5.3.7 app/models/alchemy/essence_node.rb
alchemy_cms-6.0.8 app/models/alchemy/essence_node.rb
alchemy_cms-5.3.6 app/models/alchemy/essence_node.rb
alchemy_cms-6.0.7 app/models/alchemy/essence_node.rb
alchemy_cms-6.0.6 app/models/alchemy/essence_node.rb
alchemy_cms-6.0.5 app/models/alchemy/essence_node.rb
alchemy_cms-6.0.4 app/models/alchemy/essence_node.rb
alchemy_cms-6.0.3 app/models/alchemy/essence_node.rb
alchemy_cms-6.0.2 app/models/alchemy/essence_node.rb
alchemy_cms-6.0.1 app/models/alchemy/essence_node.rb
alchemy_cms-5.3.5 app/models/alchemy/essence_node.rb
alchemy_cms-6.0.0 app/models/alchemy/essence_node.rb
alchemy_cms-5.3.4 app/models/alchemy/essence_node.rb
alchemy_cms-6.0.0.pre.rc7 app/models/alchemy/essence_node.rb
alchemy_cms-5.3.3 app/models/alchemy/essence_node.rb
alchemy_cms-5.3.2 app/models/alchemy/essence_node.rb
alchemy_cms-5.3.1 app/models/alchemy/essence_node.rb
alchemy_cms-5.3.0 app/models/alchemy/essence_node.rb