Sha256: b6e1a29349590b3711e4616c9815666889cbcbee14361c2533e461713d900a2d
Contents?: true
Size: 566 Bytes
Versions: 155
Compression:
Stored size: 566 Bytes
Contents
# Adds the ability to set the visibility of an item in the execution context. module Avo module Concerns module HasDescription extend ActiveSupport::Concern class_methods do attr_accessor :description end def description Avo::ExecutionContext.new(target: @description || self.class.description, **description_attributes).handle end private # Override this method to add custom attributes to the description execution context. def description_attributes {} end end end end
Version data entries
155 entries across 155 versions & 1 rubygems