Loading ...
Sorry, an error occurred while loading the content.

Tableless Model & ActiveModel, uniqueness validations

Expand Messages
  • blackFace
    Saya sedang membuat sebuah rest client aplikasi dimana memanfaatkan ActiveModel, tapi ActiveModel::Validations tidak ada validasi uniqueness, adakah
    Message 1 of 1 , Apr 11, 2013
    • 0 Attachment
      Saya sedang membuat sebuah rest client aplikasi dimana memanfaatkan
      ActiveModel, tapi ActiveModel::Validations tidak ada validasi
      uniqueness, adakah teman-teman disini pernah menemukan masalah spt ini?
      Adakah solusi yg ditemukan ?Berikut ini snippet class yg saya miliki
      :class Base include ActiveModel::Serialization include
      ActiveModel::Validations include ActiveModel::Conversion include HTTPart
      ...endAda jawaban di stackoverflow yg membuat subclass
      UniquenessValidator milik ActiveRecord
      http://stackoverflow.com/questions/14670396/on-an-activemodel-object-how\
      -do-i-check-uniqueness
      <http://stackoverflow.com/questions/14670396/on-an-activemodel-object-ho\
      w-do-i-check-uniqueness> , akan tetapi adakah cara lainnya ?Thanks



      [Non-text portions of this message have been removed]
    Your message has been successfully submitted and would be delivered to recipients shortly.