-
```
class User
include Virtus
attribute :first_name, String, :writer => :private
attribute :last_name, String, :reader => :private
end
$ user = User.new(:first_name => 'Ryan', :last_name => 'C…
-
Hi.
What you think about add support for attributes meta information? In some cases it may be very useful. I.e. we are generating xml by virtus models and have to wrap any array element into custom ta…
-
Hi,
I am surprised that that `Hashie::Mash` is coerced into `Hash`.
Is this expected behavior? If so, how can I avoid it?
Thanks! :smiley:
Example:
``` ruby
require 'virtus'
require 'hashie'
cl…
Domon updated
7 years ago
-
When I execute this in a Conda environment with all the necessary installations, the human FASTA file downloads successfully. However, when it tries to download the virus FASTA file, it results in a "…
-
I have several forms that submit to a Virtus object (through a controller). Some forms contain an `extras` attribute, others don't.
I currently can't distinguish whether `extras` has been set to an e…
migu0 updated
7 years ago
-
It would be nice to have a coercion like `FiexdWith`that you could inform parameters like :
* width: Integer
* alignment: {left, right}
* padding : String
Example :
```ruby
class Regist…
-
```
api
```
Original issue reported on code.google.com by `virtus...@gmail.com` on 15 Jun 2011 at 11:33
Attachments:
- [accountFeedOutput.xml.patch](https://storage.googleapis.com/google-code-attach…
-
```
api
```
Original issue reported on code.google.com by `virtus...@gmail.com` on 15 Jun 2011 at 11:33
Attachments:
- [accountFeedOutput.xml.patch](https://storage.googleapis.com/google-code-attach…
-
There was a similar issue with #113 which was fixed by patching the monkeypatch. But we are using a gem which expects empty arrays to stay as empty arrays.
The discussion here: https://github.com/…
ghost updated
5 years ago
-
For example,
``` ruby
class RegisterModel
include Virtus.model(unknown: false)
attribute :name, String
end
RegisterModel.new(name: "Ben Smith", mal_input: "---") #this should fail and raise …