Skip to content

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

Open
galetahub wants to merge 2 commits into
andypike:masterfrom
galetahub:master
Open

Allow id to be string to support not integer ids (postgresql uuid)#41
galetahub wants to merge 2 commits into
andypike:masterfrom
galetahub:master

Conversation

@galetahub

Copy link
Copy Markdown

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

@dskecse

dskecse commented Jan 14, 2019

Copy link
Copy Markdown

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants