Sha256: eaf0f81a8e6bc2c662bcdb080e84dadc908c21125ccee3e9d45f1c88d77c382c
Contents?: true
Size: 792 Bytes
Versions: 2
Compression:
Stored size: 792 Bytes
Contents
module CmAdmin DEFAULT_ACTIONS = { index: { verb: :get, path: '/' }, new: { verb: :get, path: 'new' }, show: { verb: :get, path: ':id' }, create: { verb: :post, path: '/' }, edit: { verb: :get, path: ':id/edit' }, update: { verb: :patch, path: ':id' }, destroy: { verb: :delete, path: ':id' }, history: { verb: :get, path: ':id/history' }, custom_action: { verb: :post }, custom_action_modal: { verb: :get, path: ':id/custom_action_modal/:action_name' }, export: { verb: :post, path: 'export_to_file' } }.freeze REJECTABLE_FIELDS = %w[id created_at updated_at].freeze end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
cm-admin-3.0.15 | lib/cm_admin/constants.rb |
cm-admin-3.0.14 | lib/cm_admin/constants.rb |