Sha256: 46142c5e7595bdae886dd97b5783ac8ea370a31225b656857c2b53db4d9e9481

Contents?: true

Size: 312 Bytes

Versions: 67

Compression:

Stored size: 312 Bytes

Contents

module CmAdmin
  module Models
    module Utils
      module Helpers
        extend ActiveSupport::Concern

        # Returns the humanized value of the field.
        def humanized_field_value(name, capitalize: false)
          name.to_s.humanize(capitalize: capitalize)
        end
      end
    end
  end
end

Version data entries

67 entries across 67 versions & 1 rubygems

Version Path
cm-admin-1.5.47 lib/cm_admin/models/utils/helpers.rb
cm-admin-1.5.46 lib/cm_admin/models/utils/helpers.rb
cm-admin-1.5.45 lib/cm_admin/models/utils/helpers.rb
cm-admin-1.5.44 lib/cm_admin/models/utils/helpers.rb
cm-admin-1.5.43 lib/cm_admin/models/utils/helpers.rb
cm-admin-1.5.42 lib/cm_admin/models/utils/helpers.rb
cm-admin-1.5.41 lib/cm_admin/models/utils/helpers.rb
cm-admin-1.5.40 lib/cm_admin/models/utils/helpers.rb
cm-admin-1.5.39 lib/cm_admin/models/utils/helpers.rb
cm-admin-1.5.38 lib/cm_admin/models/utils/helpers.rb
cm-admin-1.5.37 lib/cm_admin/models/utils/helpers.rb
cm-admin-1.5.36 lib/cm_admin/models/utils/helpers.rb
cm-admin-1.5.35 lib/cm_admin/models/utils/helpers.rb
cm-admin-1.5.34 lib/cm_admin/models/utils/helpers.rb
cm-admin-1.5.33 lib/cm_admin/models/utils/helpers.rb
cm-admin-1.5.32 lib/cm_admin/models/utils/helpers.rb
cm-admin-1.5.31 lib/cm_admin/models/utils/helpers.rb
cm-admin-1.5.30 lib/cm_admin/models/utils/helpers.rb
cm-admin-1.5.29 lib/cm_admin/models/utils/helpers.rb
cm-admin-1.5.28 lib/cm_admin/models/utils/helpers.rb