AlchemyCMS/alchemy_cms

View on GitHub
app/models/alchemy/ingredients/link.rb

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
# frozen_string_literal: true

module Alchemy
  module Ingredients
    # A URL
    #
    class Link < Alchemy::Ingredient
      store_accessor :data,
        :link_class_name,
        :link_target,
        :link_title

      allow_settings %i[text]

      alias_method :link, :value
    end
  end
end