Sha256: 666dc1058d9c9f589da36b8f21953c1e3bffad59eb59fa57fd75b8ac98d6a1c3
Contents?: true
Size: 1.71 KB
Versions: 3
Compression:
Stored size: 1.71 KB
Contents
Netfira::WebConnect::Rails.configure do |config| # This will be WebConnect's URI namespace. All requests with this # prefix will be routed to WebConnect, e.g. /webconnect/8/info config.uri_namespace = 'webconnect' # Tables created by WebConnect will be prefixed with this string. # You can remove this option if WebConnect isn't sharing the host # application's database. config.db_table_prefix = 'wc_' # WebConnect uses Paperclip for file storage. The hash below will # be provided to Paperclip to determine where and how files are # stored. If you remove the option completely, files will not be # stored at all. # # WebConnect adds two additional interpolations for generating paths: # :shop_id The ID of the shop that owns the file # :model_type The type of file (plural), e.g. images, attachments # # See http://rdoc.info/gems/paperclip for specifics. # TODO: S3 file storage config.file_store = { path: ':rails_root/public/system/uploaded_files/shop_:shop_id/:model_type/:filename' } # This callback will be used to authenticate incoming requests. # Pass a block or proc that accepts two arguments (shop name and # password), and returns true/false for success/fail. # # Your handler may also return a string that clients should use as # a password in subsequent requests. # TODO: Real authentication config.on_authenticate do |shop_name, password| !shop_name.nil? && !password.nil? end # WebConnect can form sessions with clients to ease load on your # authenticator. To use WebConnect sessions, uncomment the line below, # and set a session lifetime. Assign `true` if you won't want your # sessions to expire. # config.session_lifetime = 90.days end
Version data entries
3 entries across 3 versions & 1 rubygems