Skip to content

Remove the file_attribute macro #595

@matthewmcgarvey

Description

@matthewmcgarvey

With the changes in b447938 the only thing file_attribute does is specify the type for you. Because I would prefer being able to define any type for an attribute this feels like a special case we shouldn't handle.

macro file_attribute(key)
{% unless key.is_a?(SymbolLiteral) %}
{% raise "file_attribute must be declared with a Symbol" %}
{% end %}
attribute {{ key.id }} : Avram::Uploadable
end

Metadata

Metadata

Assignees

No one assigned

    Labels

    BREAKING CHANGEThis will cause a breaking change

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions