Open Piioo opened 3 years ago
Provide at least:
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.
foo
This is what is described here: http://encryption.rocketjob.io/frameworks.html
o = Object.new o.foo = '124' o.foo => '124'
Environment
Provide at least:
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