Dynamic Active Record Store accessors based off a user form?

后端 未结 2 503
轮回少年
轮回少年 2021-01-01 00:19

Active Record Store allows you to serialize parameters inside a single cell.

I.e.

class User < ActiveRecord::Base
  store :options, accessors: [ :         


        
2条回答
  •  一整个雨季
    2021-01-01 01:22

    Check out following links: https://www.ruby-forum.com/topic/113069

    How do I set an attr_accessor for a dynamic instance variable?

提交回复
热议问题