SpinaCMS/Spina

View on GitHub
app/models/spina/parts/base.rb

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
module Spina
  module Parts
    class Base
      include AttrJson::Model

      attr_json_config(unknown_key: :strip)

      attr_json :name, :string

      attr_accessor :title, :hint, :item_name

      def label
        content&.to_s
      end

      def content
      end
    end
  end
end