Sha256: 9650468472e9dd8f9dec785286d2966f51e46373a9a3a8ea00ecce01b872871a

Contents?: true

Size: 586 Bytes

Versions: 10

Compression:

Stored size: 586 Bytes

Contents

module ProMotion
  module CollectionDataBuilder
    def set_data_cell_defaults(data_cell)
      data_cell[:cell_identifier] ||= PM::CollectionViewCell::KIdentifier
      data_cell[:properties]      ||= data_cell[:style] || data_cell[:styles]

      data_cell[:accessory]       = {
        view:      data_cell[:accessory],
        value:     data_cell[:accessory_value],
        action:    data_cell[:accessory_action],
        arguments: data_cell[:accessory_arguments]
      } unless data_cell[:accessory].nil? || data_cell[:accessory].is_a?(Hash)

      data_cell
    end

  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
ProMotion-3.0.0 lib/ProMotion/collection/data/collection_data_builder.rb
ProMotion-2.8.2 lib/ProMotion/collection/data/collection_data_builder.rb
ProMotion-2.8.1 lib/ProMotion/collection/data/collection_data_builder.rb
ProMotion-2.8.0 lib/ProMotion/collection/data/collection_data_builder.rb
ProMotion-2.7.1 lib/ProMotion/collection/data/collection_data_builder.rb
ProMotion-2.7.0 lib/ProMotion/collection/data/collection_data_builder.rb
ProMotion-2.6.1 lib/ProMotion/collection/data/collection_data_builder.rb
ProMotion-2.6.0 lib/ProMotion/collection/data/collection_data_builder.rb
ProMotion-2.5.0 lib/ProMotion/collection/data/collection_data_builder.rb
ProMotion-2.5.0.beta1 lib/ProMotion/collection/data/collection_data_builder.rb