Sha256: 3cf1ca38322a95791989f750c50db5ac0f8f0b932910e0bac6f5b0261cf032b7
Contents?: true
Size: 402 Bytes
Versions: 1
Compression:
Stored size: 402 Bytes
Contents
require 'daimon/exhibition/engine' module Daimon::Exhibition class << self def routes(exhibit, router) router.instance_eval do # TODO `resources` だけで表現したい resources exhibit, only: %i(index destroy) do post '/', action: :create, on: :member delete '/', action: :destroy_all, on: :collection end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
daimon-exhibition-0.1.0 | lib/daimon/exhibition.rb |