Skip to content

Attribute type seems not to work and the attribute is still not casted #146

@Piioo

Description

@Piioo

Environment

Provide at least:

  • Ruby 2.6
  • Symmetric Encryption Version -> 4.3.2
  • Rails 6

Expected Behavior

When I define an attribute in the model to be encrypted with type definition, then it should be casted to this type

attribute :foo, :encrypted, type: :integer

When I assign to foo a string number, it should be casted to integer.

This is what is described here: http://encryption.rocketjob.io/frameworks.html

Actual Behavior

o = Object.new
o.foo = '124'
o.foo => '124'

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions