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-1.20.2.3 lib/tramway/admin/record_routes_helper.rb
tramway-admin-1.20.2.2 lib/tramway/admin/record_routes_helper.rb
tramway-admin-1.20.2.1 lib/tramway/admin/record_routes_helper.rb
tramway-admin-1.20.2 lib/tramway/admin/record_routes_helper.rb
tramway-admin-1.20.1 lib/tramway/admin/record_routes_helper.rb
tramway-admin-1.20 lib/tramway/admin/record_routes_helper.rb
tramway-admin-1.19.0.2 lib/tramway/admin/record_routes_helper.rb
tramway-admin-1.19.0.1 lib/tramway/admin/record_routes_helper.rb
tramway-admin-1.19 lib/tramway/admin/record_routes_helper.rb
tramway-admin-1.18.4.4 lib/tramway/admin/record_routes_helper.rb
tramway-admin-1.18.4.3 lib/tramway/admin/record_routes_helper.rb
tramway-admin-1.18.4.2 lib/tramway/admin/record_routes_helper.rb
tramway-admin-1.18.4.1 lib/tramway/admin/record_routes_helper.rb
tramway-admin-1.18.4 lib/tramway/admin/record_routes_helper.rb
tramway-admin-1.18.3 lib/tramway/admin/record_routes_helper.rb
tramway-admin-1.18.2 lib/tramway/admin/record_routes_helper.rb
tramway-admin-1.18.1.1 lib/tramway/admin/record_routes_helper.rb
tramway-admin-1.18.1 lib/tramway/admin/record_routes_helper.rb