Ability to specify when the normalization occurs (callback style) | Feature request #12

Closed
gamov opened this Issue May 4, 2011 · 1 comment

Comments

Projects
None yet
2 participants

gamov commented May 4, 2011

It would be great if we could specify when the normalization occurs, similarly as the validations:
http://guides.rubyonrails.org/active_record_validations_callbacks.html#on
with :on / :if / :unless
eg
normalize_attribute :first_name, :with => [:capitalize, :strip, :blank], :on => :create

Owner

mdeering commented May 11, 2012

Closing as stale issue. Have this in the roadmap now #24

mdeering closed this May 11, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment