Sha256: ff433eeb641a85e4ce8f33b3d364a9d854d44bf9dad546d2da1a3fb66f673fe2
Contents?: true
Size: 1.72 KB
Versions: 4
Compression:
Stored size: 1.72 KB
Contents
module RESTFramework BUILTIN_ACTIONS = { index: :get, new: :get, create: :post, }.freeze BUILTIN_MEMBER_ACTIONS = { show: :get, edit: :get, update: [:put, :patch].freeze, destroy: :delete, }.freeze RRF_BUILTIN_ACTIONS = { options: :options, }.freeze # Global configuration should be kept minimal, as controller-level configurations allows multiple # APIs to be defined to behave differently. class Config # Do not run `rrf_finalize` on controllers automatically using a `TracePoint` hook. This is a # performance option and must be global because we have to determine this before any # controller-specific configuration is set. If this is set to `true`, then you must manually # call `rrf_finalize` after any configuration on each controller that needs to participate # in: # - Model delegation, for the helper methods to be defined dynamically. # - Websockets, for `::Channel` class to be defined dynamically. # - Controller configuration finalization. attr_accessor :disable_auto_finalize # Freeze configuration attributes during finalization to prevent accidental mutation. attr_accessor :freeze_config end def self.config return @config ||= Config.new end def self.configure yield(self.config) end end require_relative "rest_framework/controller_mixins" require_relative "rest_framework/engine" require_relative "rest_framework/errors" require_relative "rest_framework/filters" require_relative "rest_framework/generators" require_relative "rest_framework/paginators" require_relative "rest_framework/routers" require_relative "rest_framework/serializers" require_relative "rest_framework/utils" require_relative "rest_framework/version"
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
rest_framework-0.7.4 | lib/rest_framework.rb |
rest_framework-0.7.3 | lib/rest_framework.rb |
rest_framework-0.7.2 | lib/rest_framework.rb |
rest_framework-0.7.1 | lib/rest_framework.rb |