阅读背景:

如何验证数组字段的成员?

来源:互联网 

I have this model:

我有这个模型:

class Campaign

  include Mongoid::Document
  include Mongoid::Timestamps

  field :name, :type => String
  field :subdomain, :type => String
  field :intro, :type => String
  field :body, :type => String
  field :emails, :type => Array
end
class Campaign




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: