Sha256: 6060eed938c36e38814734ed9a38225fb585ed3feab940f4feb96e57cf5addbd

Contents?: true

Size: 709 Bytes

Versions: 53

Compression:

Stored size: 709 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'
    }
  }
  REJECTABLE_FIELDS = %w(id created_at updated_at)
end

Version data entries

53 entries across 53 versions & 1 rubygems

Version Path
cm-admin-3.0.13 lib/cm_admin/constants.rb
cm-admin-3.0.12 lib/cm_admin/constants.rb
cm-admin-3.0.11 lib/cm_admin/constants.rb
cm-admin-3.0.10 lib/cm_admin/constants.rb
cm-admin-3.0.9 lib/cm_admin/constants.rb
cm-admin-3.0.8 lib/cm_admin/constants.rb
cm-admin-3.0.7 lib/cm_admin/constants.rb
cm-admin-3.0.6 lib/cm_admin/constants.rb
cm-admin-3.0.5 lib/cm_admin/constants.rb
cm-admin-3.0.4 lib/cm_admin/constants.rb
cm-admin-3.0.3 lib/cm_admin/constants.rb
cm-admin-3.0.2 lib/cm_admin/constants.rb
cm-admin-3.0.1 lib/cm_admin/constants.rb
cm-admin-3.0.0 lib/cm_admin/constants.rb
cm-admin-2.4.6 lib/cm_admin/constants.rb
cm-admin-2.4.5 lib/cm_admin/constants.rb
cm-admin-2.4.4 lib/cm_admin/constants.rb
cm-admin-2.4.3 lib/cm_admin/constants.rb
cm-admin-2.4.2 lib/cm_admin/constants.rb
cm-admin-2.4.1 lib/cm_admin/constants.rb