Skip to content

Allowing nil? #43

@ghost

Description

I have an attribute:

  attribute :link, Type::Integer

I'm trying to remove the value but it keeps the 0 value :(

> device.update :link => nil
>  device.link
=> 0

Anyway to have a type but to allow nil?

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