Sha256: 3392e64d48ed339b02c352425d3757082b16999c21ff021e3f040b561686983e

Contents?: true

Size: 606 Bytes

Versions: 118

Compression:

Stored size: 606 Bytes

Contents

# frozen_string_literal: true

module Tramway
  module Admin
    module RecordRoutesHelper
      def record_path(*args, **options)
        options[:model] ||= params[:model]
        super args, options
      end

      def edit_record_path(*args, **options)
        options[:model] ||= params[:model]
        super args, options
      end

      def new_record_path(*args, **options)
        options[:model] ||= params[:model]
        super args, options
      end

      def records_path(*args, **options)
        options[:model] ||= params[:model]
        super args, options
      end
    end
  end
end

Version data entries

118 entries across 118 versions & 1 rubygems

Version Path
tramway-admin-5.0 lib/tramway/admin/record_routes_helper.rb
tramway-admin-4.1.2.1 lib/tramway/admin/record_routes_helper.rb
tramway-admin-4.1.2 lib/tramway/admin/record_routes_helper.rb
tramway-admin-4.1.1.5 lib/tramway/admin/record_routes_helper.rb
tramway-admin-4.1.1.4 lib/tramway/admin/record_routes_helper.rb
tramway-admin-4.1.1.3 lib/tramway/admin/record_routes_helper.rb
tramway-admin-4.1.1.2 lib/tramway/admin/record_routes_helper.rb
tramway-admin-4.1.1.1 lib/tramway/admin/record_routes_helper.rb
tramway-admin-4.1.1 lib/tramway/admin/record_routes_helper.rb
tramway-admin-4.1.0.1 lib/tramway/admin/record_routes_helper.rb
tramway-admin-4.1 lib/tramway/admin/record_routes_helper.rb
tramway-admin-4.0.1.1 lib/tramway/admin/record_routes_helper.rb
tramway-admin-4.0.1 lib/tramway/admin/record_routes_helper.rb
tramway-admin-4.0.0.1 lib/tramway/admin/record_routes_helper.rb
tramway-admin-4.0 lib/tramway/admin/record_routes_helper.rb
tramway-admin-3.0.1.1 lib/tramway/admin/record_routes_helper.rb
tramway-admin-3.0.1 lib/tramway/admin/record_routes_helper.rb
tramway-admin-3.0 lib/tramway/admin/record_routes_helper.rb
tramway-admin-2.1.3.3 lib/tramway/admin/record_routes_helper.rb
tramway-admin-2.1.3.2 lib/tramway/admin/record_routes_helper.rb