Sha256: 112572c742ab0d38c9c4af70449deeb98099f9327279074df880253b9f55d256
Contents?: true
Size: 546 Bytes
Versions: 1
Compression:
Stored size: 546 Bytes
Contents
# frozen_string_literal: true module RailsAdminGlobalizeField class Tab attr_reader :locale, :translation def initialize(locale, translation, validate: true) @locale = locale @translation = translation @validate = validate end def id ['pane', translation.model_name.param_key, locale].join('-') end def active! @active = true end def active? @active end def valid? !@validate || translation.valid? end def invalid? !valid? end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rails_admin_globalize_field-1.0.0 | lib/rails_admin_globalize_field/tab.rb |