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

Version Path
carnival-0.3.2 app/models/carnival/batch_action.rb
carnival-0.3.1 app/models/carnival/batch_action.rb
carnival-0.3.0 app/models/carnival/batch_action.rb
carnival-0.2.8 app/models/carnival/batch_action.rb