Skip to content

How to use model methods in rectify form ? #42

@rusikf

Description

@rusikf

If you use phony_rails gem, you can use something like this:

class Model
validates :phone,
    phony_plausible: true,
    format: { with: /\A\+\d+/, message: 'should start with +' }

  phony_normalize :phone # this is used before validation
end

How to inlude the same code in rectify form ? It looks that I cannot add phony_normalize method, so for now I will add it to model 😿

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions