Sha256: fa3a5d45b5d86ee85818dbd7397f4503ec65eef79b84e0bbbbfdca5a14e82f08
Contents?: true
Size: 691 Bytes
Versions: 12
Compression:
Stored size: 691 Bytes
Contents
module Coprl::Presenters::WebClient::Helpers::Rails module Partials # Called by built in views def partial(template, *args) options = args.last.is_a?(Hash) ? args.pop : {} options.merge!(partial: template) # Rails does not support the views parameter ... but sinatra does so we clean it up here options.delete(:views) render options end # Called by plugins def render_partial(_engine, template, options = {}, locals = {}, &block) # Rails does not support the views parameter ... but sinatra does so we clean it up here options.delete(:views) options.merge!(partial: template.to_s) render options end end end
Version data entries
12 entries across 12 versions & 1 rubygems