Sha256: c5c9f08ecd143cbdba7124b676edac58f180e43ff59d7ad4ca83f0da1becbde5

Contents?: true

Size: 239 Bytes

Versions: 5

Compression:

Stored size: 239 Bytes

Contents

module Ecom
  module Model
    class Menu < ApplicationRecord
      belongs_to :parent, class_name: 'Ecom::Model::Menu', optional: true
      belongs_to :application_module

      validates :label, :route, presence: true
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ecom_model-2.0.4 app/models/ecom/model/menu.rb
ecom_model-2.0.3 app/models/ecom/model/menu.rb
ecom_model-2.0.2 app/models/ecom/model/menu.rb
ecom_model-2.0.1 app/models/ecom/model/menu.rb
ecom_model-2.0.0 app/models/ecom/model/menu.rb