rectify icon indicating copy to clipboard operation
rectify copied to clipboard

Allow id to be string to support not integer ids (postgresql uuid)

Open galetahub opened this issue 8 years ago • 2 comments

Record identifier type can be anything else, so it's better to use String type

galetahub avatar Jun 06 '17 12:06 galetahub

awesome, I need new_record? method like the air. I'm using cocoon gem, and it requires this method to be present on simple_form_builder.object

@andypike when this will be merged?

srghma avatar Jan 16 '18 18:01 srghma

@galetahub for your specific case you could simply add a BaseForm to your app:

class BaseForm < Rectify::Form
  def persisted?
    id.present?
  end
end

and then derive your actual forms off of it.

dskecse avatar Jan 14 '19 15:01 dskecse