instance method
attachable_sgid
Ruby on Rails 8.0.4
Since v6.0.6Signature
attachable_sgid()
Returns the Signed Global ID for the attachable. The purpose of the ID is set to ‘attachable’ so it can’t be reused for other purposes.
Source
# File actiontext/lib/action_text/attachable.rb, line 79
def attachable_sgid
to_sgid(expires_in: nil, for: LOCATOR_NAME).to_s
end
Defined in actiontext/lib/action_text/attachable.rb line 79
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionText::Attachable