Sha256: abe828951243575c07a069a90d901855fd209f8629e6f2120a76a11798eb3b59
Contents?: true
Size: 523 Bytes
Versions: 6
Compression:
Stored size: 523 Bytes
Contents
module Acfs::Model # Provide methods for generation URLs for resources. # # Example # class User # service AccountService # With base URL `http://acc.svr` # end # User.url #=> "http://acc.svr/users" # User.url(5) #=> "http://acc.svr/users/5" # module Locatable extend ActiveSupport::Concern module ClassMethods # Return URL for this resource. # def url(suffix = nil) service.url_for(self, suffix: suffix) end end end end
Version data entries
6 entries across 6 versions & 1 rubygems