Sha256: cf1a3d29239fce313e36bdf9aacc3ba033d300a64e0b323a1b7bf386f2f5cac8
Contents?: true
Size: 523 Bytes
Versions: 1
Compression:
Stored size: 523 Bytes
Contents
module Shopper module OrdersPage class OrdersPresenter < Rectify::Presenter def initialize(orders, filter_methods, current_filter_method) @orders = OrdersPage::OrderDecorator.for_collection(orders) @filter_methods = filter_methods.map do |method| { key: method, title: t("order.states.#{method}") } end @current_filter_method = t("order.states.#{current_filter_method}") end attr_reader :orders, :filter_methods, :current_filter_method end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
shoppper-0.1.0 | app/presenters/shopper/orders_page/orders_presenter.rb |