Skip to content

attributes hash assumes symbols, fails with strings, pretty dumb #29

@mustmodify

Description

@mustmodify
class Fu < Valuable
  has_value :bar
end

>> f = Fu.new(bar: 6)

>> f.attributes['bar']
=> nil

>> f.attributes[:bar]
=> 6

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