Sha256: b6abf22ef89cb0530b46b75540cf2cb31dd2a8633b5558f8e8c1aec27593a3a4
Contents?: true
Size: 317 Bytes
Versions: 4
Compression:
Stored size: 317 Bytes
Contents
require 'rails' require 'administrate/field/base' module Administrate module Field class BooleanEmoji < Administrate::Field::Base class Engine < ::Rails::Engine; end def lboolean data.nil? ? '–' : I18n.t(data.to_s, scope: 'administrate.fields.boolean_emoji') end end end end
Version data entries
4 entries across 4 versions & 1 rubygems