Sha256: f5266375627918db5da9e52c70bf4f20702a5bb78f2277e561e84d9cc7bfef7c
Contents?: true
Size: 320 Bytes
Versions: 2
Compression:
Stored size: 320 Bytes
Contents
# frozen_string_literal: true module Sunrise module Models class PositionType include EnumField::DefineEnum attr_reader :code def initialize(code) @code = code.to_sym end def title I18n.t(@code, scope: [:manage, :structure, :position]) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
sunrise-cms-1.1.1 | lib/sunrise/models/position_type.rb |
sunrise-cms-1.1.0 | lib/sunrise/models/position_type.rb |