Sha256: 1ea5ec1ced5564547202ddb3452c494edcd9f507ac199f09bc857c02dedaaa74

Contents?: true

Size: 540 Bytes

Versions: 44

Compression:

Stored size: 540 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'
    },
    custom_action: {
      verb: :post
    }
  }
  REJECTABLE_FIELDS = %w(id created_at updated_at)
end

Version data entries

44 entries across 44 versions & 1 rubygems

Version Path
cm-admin-1.0.2 lib/cm_admin/constants.rb
cm-admin-1.0.0 lib/cm_admin/constants.rb
cm-admin-0.9.1 lib/cm_admin/constants.rb
cm-admin-0.9.0 lib/cm_admin/constants.rb
cm-admin-0.8.9 lib/cm_admin/constants.rb
cm-admin-0.8.8 lib/cm_admin/constants.rb
cm-admin-0.8.7 lib/cm_admin/constants.rb
cm-admin-0.8.6 lib/cm_admin/constants.rb
cm-admin-0.8.5 lib/cm_admin/constants.rb
cm-admin-0.8.4 lib/cm_admin/constants.rb
cm-admin-0.8.3 lib/cm_admin/constants.rb
cm-admin-0.8.2 lib/cm_admin/constants.rb
cm-admin-0.8.1 lib/cm_admin/constants.rb
cm-admin-0.8.0 lib/cm_admin/constants.rb
cm-admin-0.7.8 lib/cm_admin/constants.rb
cm-admin-0.7.7 lib/cm_admin/constants.rb
cm-admin-0.7.6 lib/cm_admin/constants.rb
cm-admin-0.7.5 lib/cm_admin/constants.rb
cm-admin-0.7.4 lib/cm_admin/constants.rb
cm-admin-0.7.3 lib/cm_admin/constants.rb