Sha256: 1d2eb577f598365a883c7a8aeadbfab47d8ee44dc13d17a335a19e057d51f04a

Contents?: true

Size: 234 Bytes

Versions: 25

Compression:

Stored size: 234 Bytes

Contents

module Admin::Resources::DataTypes::TransversalHelper

  def table_transversal_field(attribute, item)
    field_1, field_2 = attribute.split(".")
    (related_item = item.send(field_1)) ? related_item.send(field_2) : mdash
  end

end

Version data entries

25 entries across 25 versions & 2 rubygems

Version Path
brainsome_typus-4.0.0.beta13 app/helpers/admin/resources/data_types/transversal_helper.rb
brainsome_typus-4.0.0.beta12 app/helpers/admin/resources/data_types/transversal_helper.rb
brainsome_typus-4.0.0.beta11 app/helpers/admin/resources/data_types/transversal_helper.rb
brainsome_typus-4.0.0.beta10 app/helpers/admin/resources/data_types/transversal_helper.rb
brainsome_typus-4.0.0.beta9 app/helpers/admin/resources/data_types/transversal_helper.rb
brainsome_typus-4.0.0.beta8 app/helpers/admin/resources/data_types/transversal_helper.rb
brainsome_typus-4.0.0.beta7 app/helpers/admin/resources/data_types/transversal_helper.rb
brainsome_typus-4.0.0.beta6 app/helpers/admin/resources/data_types/transversal_helper.rb
brainsome_typus-4.0.0.beta5 app/helpers/admin/resources/data_types/transversal_helper.rb
brainsome_typus-4.0.0.beta4 app/helpers/admin/resources/data_types/transversal_helper.rb
brainsome_typus-4.0.0.beta3 app/helpers/admin/resources/data_types/transversal_helper.rb
brainsome_typus-4.0.0.beta2 app/helpers/admin/resources/data_types/transversal_helper.rb
brainsome_typus-4.0.0.beta1 app/helpers/admin/resources/data_types/transversal_helper.rb
typus-3.1.10 app/helpers/admin/resources/data_types/transversal_helper.rb
typus-3.1.9 app/helpers/admin/resources/data_types/transversal_helper.rb
typus-3.1.8 app/helpers/admin/resources/data_types/transversal_helper.rb
typus-3.1.7 app/helpers/admin/resources/data_types/transversal_helper.rb
typus-3.1.6 app/helpers/admin/resources/data_types/transversal_helper.rb
typus-3.1.5 app/helpers/admin/resources/data_types/transversal_helper.rb
typus-3.1.4 app/helpers/admin/resources/data_types/transversal_helper.rb