Sha256: 1af79162b1798dfcebc0927758a2cfefe819100f21096a721ea35ddfbd09a752
Contents?: true
Size: 488 Bytes
Versions: 15
Compression:
Stored size: 488 Bytes
Contents
# frozen_string_literal: true module Maglev class Site < ApplicationRecord ## concerns ## include Maglev::Site::LocalesConcern include Maglev::SectionsConcern include Maglev::Translatable ## translations ## translates :sections ## validations ## validates :name, presence: true ## methods ## def api_attributes %i[id name] end def find_section(type) sections&.find { |section| section['type'] == type } end end end
Version data entries
15 entries across 15 versions & 1 rubygems