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 に答える