0

我正在使用 Refinery 并希望对 RefineryUser 进行编辑。在架构文件中,我看到以下内容:

  create_table "refinery_authentication_devise_users", force: :cascade do |t|
    t.string   "username",               null: false
    t.string   "email",                  null: false
    t.string   "encrypted_password",     null: false
    t.datetime "current_sign_in_at"
    t.datetime "last_sign_in_at"
    t.string   "current_sign_in_ip"
    t.string   "last_sign_in_ip"
    t.integer  "sign_in_count"
    t.datetime "remember_created_at"
    t.string   "reset_password_token"
    t.datetime "reset_password_sent_at"
    t.datetime "created_at"
    t.datetime "updated_at"
    t.string   "slug"
    t.string   "full_name"
  end

但我找不到模型。如何找到模型,以便向 RefineryUsers 添加回调、验证和其他代码。我还可以添加 ActiveAdmin 并使炼油厂用户成为 activeadmin 用户。

4

1 回答 1

0

如果您使用此扩展,用户模型位于https://github.com/refinery/refinerycms-authentication-devise 。如果您想使用 ActiveAdmin,您可能必须破解它:https ://github.com/refinery/refinerycms-authentication-devise/issues/16

于 2016-11-29T04:18:11.697 回答