Sha256: 9444cacc72909794abf24214dbf54385d8edc697142f0d3ea29adeb884856bed
Contents?: true
Size: 1.06 KB
Versions: 6
Compression:
Stored size: 1.06 KB
Contents
require 'lotus/routing/resource' require 'lotus/routing/resources/action' module Lotus module Routing # Set of RESTful resources routes # Implementation of Lotus::Router#resources # # @since 0.1.0 # # @api private # # @see Lotus::Router#resources class Resources < Resource # Set of default routes # # @api private # @since 0.1.0 self.actions = [:index, :new, :create, :show, :edit, :update, :destroy] # Action class # # @api private # @since 0.1.0 self.action = Resources::Action # Member action class # # @api private # @since 0.1.0 self.member = Resources::MemberAction # Collection action class # # @api private # @since 0.1.0 self.collection = Resources::CollectionAction # Return wildcard param between separators # # @api private # @since 0.4.0 def wildcard_param(route_param = nil) "/:#{ Lotus::Utils::String.new(route_param).singularize }_id/" end end end end
Version data entries
6 entries across 6 versions & 1 rubygems