Sha256: 73dd3f72866737b04cdee141b2a21defac5897129e96dbc5b0a69caa94080126

Contents?: true

Size: 219 Bytes

Versions: 4

Compression:

Stored size: 219 Bytes

Contents

# frozen_string_literal: true

class ApplicationTwirpController < RailsTwirp::Base
  rescue_from ActiveRecord::RecordNotFound, with: :handle_not_found

  def handle_not_found
    error :not_found, "Not found"
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rails_twirp-0.17 test/dummy/app/controllers/application_twirp_controller.rb
rails_twirp-0.16 test/dummy/app/controllers/application_twirp_controller.rb
rails_twirp-0.15 test/dummy/app/controllers/application_twirp_controller.rb
rails_twirp-0.14 test/dummy/app/controllers/application_twirp_controller.rb