Sha256: f4a48386aa11dcbf6cfde03188706405831e7f05f89dee41d24f08d0760074fd
Contents?: true
Size: 524 Bytes
Versions: 45
Compression:
Stored size: 524 Bytes
Contents
module Avo module CommonController def default_url_options result = super.dup result[:force_locale] = params[:force_locale] extra_default_url_options.each do |param_name| result[param_name] = params[param_name] end result.compact end def extra_default_url_options block_or_array = Avo.configuration.default_url_options if block_or_array.respond_to?(:call) instance_eval(&block_or_array) else block_or_array end end end end
Version data entries
45 entries across 45 versions & 1 rubygems