#form
f.input, :groupable_gid, as: :select, collection: [groupable.name, groupable.to_gid]
#polymorphic model
def groupable_gid
groupable&.to_global_id
end
def groupable_gid=(gid)
self.groupable = GlobalID::Locator.locate gid
end
#form
f.input, :groupable_gid, as: :select, collection: [groupable.name, groupable.to_gid]
#polymorphic model
def groupable_gid
groupable&.to_global_id
end
def groupable_gid=(gid)
self.groupable = GlobalID::Locator.locate gid
end
For further actions, you may consider blocking this person and/or reporting abuse
JetThoughts Dev -
sebyx07 -
Jess Alejo -
T Sudhish Nair -
Top comments (0)