Sha256: 704f481f9fe41d9e0d40180a14b302321c671ad28c0dd2522ce9e7f5b0086f4f

Contents?: true

Size: 498 Bytes

Versions: 1

Compression:

Stored size: 498 Bytes

Contents

object false

child @features, object_root: false, root: 'features' do
  attributes :id, :feature_type_id, :price, :price_type_id, :subtitle, :discount_percentage,
             :total_cost, :order_discount
  node :title do |feature|
    if feature.feature_type.multiple_variants?
      "#{feature.feature_type.title} #{feature.title}"
    else
      feature.title
    end
  end

  node :code do |feature|
    feature.feature_type.code
  end

  node :tip do |feature|
    feature.subtitle
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
translation_cms-0.1.5 app/views/payments/transactions/features.json.rabl