Sha256: c012e37440256f5a3c34454e5b496e3a5a68cf271481f9de74ebd8a9b79721a0
Contents?: true
Size: 615 Bytes
Versions: 9
Compression:
Stored size: 615 Bytes
Contents
# frozen_string_literal: true require 'active_support' module Azeroth # @api public # @author Darthjee # # Concern for building controller methods for the routes module Resourceable extend ActiveSupport::Concern included do rescue_from ActiveRecord::RecordNotFound, with: :not_found end autoload :Builder, 'azeroth/resourceable/builder' autoload :ClassMethods, 'azeroth/resourceable/class_methods' private # @api private # @private # # returns 404 as HTTP status # # @return [TrueClass] def not_found head :not_found end end end
Version data entries
9 entries across 9 versions & 1 rubygems