smpallen99/coherence

Rememberable in last git version.

開放

#279 建立於 2017年9月12日

 (0 則留言) (0 個反應) (0 位負責人)Elixir (220 個分叉)batch import
bughelp wanted

倉庫指標

星標
 (1,259 顆星)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

Hello. I have two problems with rememberable in last git version.

  • If I use my own user_schema in Config, it works ok evereywhere, when is used as declared, except in Rememberable.eex Schema, when is used: belongs_to :user, Module.concat(Config.module, Config.user_schema) This is inconsistent with rest of uses, for example in controllers: defp rememberable_enabled? do if Config.user_schema.rememberable?(), do: true, else: false end Where is not concatenated with the module.

  • Second, I want to use just a Rememberable Schema (as I do with user) declaring it in Config in order to reuse the same schema in some apps. But in controllers Rememberable is obtained using Coherence.Schemas.schema(Rememberable), and not from config.

    def schema(schema) do Module.concat [Config.module, Coherence, schema] end

So I can't reuse the Rememberable schema.

Thanxs in advance.

貢獻者指南