Emil Sågfors
Emil Sågfors
> Why not `%{key}{translation}`? `%{key}[translation]` could also be fine - it looks a bit like Markdown, but it's different. Yep, either looks good. I'm leaning more towards the square brackets,...
Thanks for the input! It seems to me like you are suggesting many things at once, which makes it a little overwhelming. I'll do my best to respond to each...
> Separate out any Pundit requirements. While I think Pundit is great, is also has some limitations. Be nice to have it as an optional dependency. This shouldn't require any...
> Possibly create a scoped resource authorization abstraction. Mostly taking whats already in PunditScopedResource and abstracting the calls out so a custom scoped resource could be set in config. `PunditScopedResource`...
> Having a single responsibility for each authorization call in the default Authorizer. For example create today has two responsibilities. Just separating these two concerns out into two methods. >...
> We are at the point where we need to either use jsonapi authorization or fork and create a new authorization library. I would rather combine efforts then create a...
I'm currently facing this same problem. Although for me, it extends to other common i18n tasks as well, such as pluralization, selecting a different locale at runtime, and so on....
@MrOrz pluralization, like interpolation, is a trivial task on its own. :) My thought was that instead of adding rudimentary support for one common i18n feature after another into the...
I've encountered this need a couple of times; it would be great to be able to specify that an attribute falls back to the `default` when set to `nil`. I...
Apparently this is due to Rails 5 disabling autoloading (and thus auto-reloading) of constants when `config.eager_load = true`. However, thanks to [this article](https://collectiveidea.com/blog/archives/2016/07/22/solutions-to-potential-upgrade-problems-in-rails-5) I learned that it's possible to re-enable...