Sha256: 6734de667bb847a2f1aa59f9df2df92d8065dac7375dea90af5c917414d5ede4

Contents?: true

Size: 252 Bytes

Versions: 24

Compression:

Stored size: 252 Bytes

Contents

module Renalware
  module AttributeNameHelper
    # disables :reek:FeatureEnvy
    def attr_name(model, attr, suffix: nil)
      klass = model.is_a?(Class) ? model : model.class
      klass.human_attribute_name(attr) + String(suffix)
    end
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
renalware-core-2.0.16 app/helpers/renalware/attribute_name_helper.rb
renalware-core-2.0.15 app/helpers/renalware/attribute_name_helper.rb
renalware-core-2.0.14 app/helpers/renalware/attribute_name_helper.rb
renalware-core-2.0.13 app/helpers/renalware/attribute_name_helper.rb
renalware-core-2.0.12 app/helpers/renalware/attribute_name_helper.rb
renalware-core-2.0.11 app/helpers/renalware/attribute_name_helper.rb
renalware-core-2.0.9 app/helpers/renalware/attribute_name_helper.rb
renalware-core-2.0.8 app/helpers/renalware/attribute_name_helper.rb
renalware-core-2.0.7 app/helpers/renalware/attribute_name_helper.rb
renalware-core-2.0.5 app/helpers/renalware/attribute_name_helper.rb
renalware-core-2.0.4 app/helpers/renalware/attribute_name_helper.rb
renalware-core-2.0.3 app/helpers/renalware/attribute_name_helper.rb
renalware-core-2.0.2 app/helpers/renalware/attribute_name_helper.rb
renalware-core-2.0.1 app/helpers/renalware/attribute_name_helper.rb
renalware-core-2.0.0 app/helpers/renalware/attribute_name_helper.rb
renalware-core-2.0.0.pre.rc13 app/helpers/renalware/attribute_name_helper.rb
renalware-core-2.0.0.pre.rc11 app/helpers/renalware/attribute_name_helper.rb
renalware-core-2.0.0.pre.rc10 app/helpers/renalware/attribute_name_helper.rb
renalware-core-2.0.0.pre.rc9 app/helpers/renalware/attribute_name_helper.rb
renalware-core-2.0.0.pre.rc8 app/helpers/renalware/attribute_name_helper.rb