bborn/communityengine — Issue #61: Unable to override login field length
Author: harmsk
Created: 2012-02-27 21:08:59+00:00
State: open

Is there a way to override the login field length?

I've done this in my user model:
class User < ActiveRecord::Base
require_from_ce 'models/user'

acts_as_authentic do |c|
c.validates_length_of_login_field_options :minimum => 2
end

I've also tried: c.merge_validates_length_of_login_field_options :minimum => 2

However, neither of these changes work; the login field still requires a minimum of 5 characters.

Is there something special that needs to be done to force your own options when using require_from_ce ?