Sha256: 61fd8031334902b48e63ab415c2d16e9217209fc85f8e247bb709d0da83196b8
Contents?: true
Size: 815 Bytes
Versions: 13
Compression:
Stored size: 815 Bytes
Contents
module Restfulie module Server module Configuration # Defines host to be passed to polymorphic_url. # You need to setup this to your own domain in order to generate meaningful links. mattr_accessor :host @@host = 'localhost' # Passes a symbol to polymorphic_url in order to use a namespaced named_route. # So, if config.named_route_prefix = :rest, it will search for rest_album_url, # rest_album_songs_url, and so on. mattr_accessor :named_route_prefix @@named_route_prefix = nil # This defines a Rails-like way to setup options. You can do, in a initializer: # Restfulie::Server.setup do |config| # config.host = 'mydomain.com' # end def self.setup yield self end end end end
Version data entries
13 entries across 13 versions & 2 rubygems