class method
self.locate_signed
Ruby on Rails 1.3.0
Last seen in v1.3.0Signature
self.locate_signed(sgid, options = {})
Takes either a SignedGlobalID or a string that can be turned into a SignedGlobalID
Options:
-
:includes- A Symbol, Array, Hash or combination of them The same structure you would pass into a includes method of Active Record. @see guides.rubyonrails.org/active_record_querying.html#eager-loading-associations If present, locate_signed will load all the relationships specified here. -
:only- A class, module or Array of classes and/or modules that are allowed to be located. Passing one or more classes limits instances of returned classes to those classes or their subclasses. Passing one or more modules in limits instances of returned classes to those including that module. If no classes or modules match,nilis returned.
Parameters
-
sgidreq -
optionsopt = {}
Source
# File lib/global_id/locator.rb, line 84
def locate_signed(sgid, options = {})
SignedGlobalID.find sgid, options
end
Defined in lib/global_id/locator.rb line 84
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in GlobalID::Locator