Sha256: 2e4ba505137c84ab6f44ea0f102d533e313d4a76d946e918bf520317e6f3a1db
Contents?: true
Size: 433 Bytes
Versions: 4
Compression:
Stored size: 433 Bytes
Contents
module Carnival class BatchAction < Action include Rails.application.routes.url_helpers def initialize(presenter, name, params={}) @presenter = presenter @name = name @params = params @path = params[:path] if params[:path].present? end def params @params end def name @name end def to_label I18n.t("#{@presenter.model_name}.#{name}") end end end
Version data entries
4 entries across 4 versions & 1 rubygems