Sha256: d3ca4557f6d8871c1a65e8a4fa88ed663b893b6cb751e20de7278ef697b92087

Contents?: true

Size: 606 Bytes

Versions: 74

Compression:

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

Version data entries

74 entries across 74 versions & 1 rubygems

Version Path
cm-admin-1.5.40 lib/cm_admin/constants.rb
cm-admin-1.5.39 lib/cm_admin/constants.rb
cm-admin-1.5.38 lib/cm_admin/constants.rb
cm-admin-1.5.37 lib/cm_admin/constants.rb
cm-admin-1.5.36 lib/cm_admin/constants.rb
cm-admin-1.5.35 lib/cm_admin/constants.rb
cm-admin-1.5.34 lib/cm_admin/constants.rb
cm-admin-1.5.33 lib/cm_admin/constants.rb
cm-admin-1.5.32 lib/cm_admin/constants.rb
cm-admin-1.5.31 lib/cm_admin/constants.rb
cm-admin-1.5.30 lib/cm_admin/constants.rb
cm-admin-1.5.29 lib/cm_admin/constants.rb
cm-admin-1.5.28 lib/cm_admin/constants.rb
cm-admin-1.5.10 lib/cm_admin/constants.rb
cm-admin-1.5.27 lib/cm_admin/constants.rb
cm-admin-1.5.26 lib/cm_admin/constants.rb
cm-admin-1.5.25 lib/cm_admin/constants.rb
cm-admin-1.5.23 lib/cm_admin/constants.rb
cm-admin-1.5.22 lib/cm_admin/constants.rb
cm-admin-1.5.21 lib/cm_admin/constants.rb