Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

galetahub
Copy link

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

@srghma
Copy link

srghma commented Jan 16, 2018

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?

@dskecse
Copy link

dskecse commented Jan 14, 2019

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

3 participants