Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Custom fields #41

@asiniy

Description

@asiniy

I think many users, not just I, need custom fields, like phone, address, et.c. Can I refactor list of custom attributes with their validation like that:

config.fields = [:email, :phone]

validates :email, presence: true, email: true
validates :phone, numericality: { only_integer: true }, allow_nil: true

Is there any way?

If no, I want to refactor this gem and provide the ability to make a custom fields

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions