Posted about 5 years ago. Visible to the public. Linked content.

assignable_values 0.9.0 supports virtual attributes

Now you can say:
```
class Song < ActiveRecord::Base

attr_accessor :virtual_attribute

assignable_values_for :virtual_attribute do
%w[air fluff]
end

end
```

By refactoring problematic code and creating automated tests, makandra can vastly improve the maintainability of your Rails application.

Owner of this card:

Avatar
Martin Straub
Last edit:
about 5 years ago
About this deck:
We are makandra and do test-driven, agile Ruby on Rails software development.
License for source code
Posted by Martin Straub to makandra dev
This website uses cookies to improve usability and analyze traffic.
Accept or learn more