Sha256: 103437a593c244894e31899fb49a79da1937763ca9c1cb7591ac38c8b9cf79df
Contents?: true
Size: 489 Bytes
Versions: 5
Compression:
Stored size: 489 Bytes
Contents
module Dorsale module SmallData class FiltersController < ApplicationController def create filters = params[:filters] || {} filters.each do |key, value| filters[key] = "" if value == "0" end Filter.new(cookies).store(filters) urls = [ params[:back_url], request.referer, (main_app.root_path rescue nil) ] redirect_to urls.select(&:present?).first end end end end
Version data entries
5 entries across 5 versions & 1 rubygems