Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
I18N Scope #80
Since ActiveAttr isn't doing anything for i18n, and only leaning on ActiveModel, you'll have to use "activemodel" as the key portion instead of "activerecord" or "activeattr".
I'll leave this issue open to consider whether we should declare our own i18n scope. It might be necessary when we create our own validators.
This comment has been minimized.
This comment has been minimized.Show comment Hide comment
Just encountered this - I see that ActiveRecord overrides the #i18n_scope method to :activerecord, but ActiveModel by default declares it as :activemodel
For now, we're going with a Monkey Patch to BasicModel of:
def self.i18n_scope "activerecord" end
Not sure if there is a more elegant way of integrating this into the gem - I can imagine the 80%+ of users would be using this within a Rails stack, and therefore needing this patch. Might be a little beyond my modest skills now, but I'll keep a few brain cells working on it.