Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Piioo opened this issue Dec 3, 2020 · 0 comments
Open
Labels

Comments

@Piioo
Copy link

Piioo commented Dec 3, 2020

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'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants