Sha256: 10fb5c76e98da5beb0338b32c40ce1edd6a608b8621e4ce0461201ff99638dfe

Contents?: true

Size: 349 Bytes

Versions: 3

Compression:

Stored size: 349 Bytes

Contents

# frozen_string_literal: true

module Tramway::SingletonHelper
  # FIXME: replace to module
  def current_model_singleton_path(*args, **options)
    singleton_path args, options.merge(model: params[:model])
  end

  def edit_current_model_singleton_path(*args, **options)
    edit_singleton_path args, options.merge(model: params[:model])
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
tramway-0.1.2 app/helpers/tramway/singleton_helper.rb
tramway-0.1.1.1 app/helpers/tramway/singleton_helper.rb
tramway-0.1.1 app/helpers/tramway/singleton_helper.rb