У меня есть
class Fruit < ActiveRecord::Base
includes Skin
end
и модуль микин
module Skin
def initialize
self.skin = "fuzzy"
end
end
Я хочу это так, чтобы
>> Fruit.new
#<Fruit skin: "fuzzy", created_at: nil, updated_at: nil>