Sha256: e389cee5aec2192f0950c84c8cc851fe68023dcf1bcbd140cc078975455413ff
Contents?: true
Size: 432 Bytes
Versions: 61
Compression:
Stored size: 432 Bytes
Contents
# frozen_string_literal: true require 'ransack/helpers/form_helper' module Tables class ActiveRecordThComponent < ViewComponent::Base include Ransack::Helpers::FormHelper def initialize(column_name:, ransack_object: ) @column_name = column_name @q = ransack_object @label = label end def label I18n.t("bo.#{@q.object.klass.to_s.underscore}.attributes.#{@column_name}") end end end
Version data entries
61 entries across 61 versions & 1 rubygems