Sha256: a6e43b2fc88cd214a434f4380a988d43d7fcb66597c3a502c8126081491da75b
Contents?: true
Size: 588 Bytes
Versions: 13
Compression:
Stored size: 588 Bytes
Contents
class Card module Env # utility methods for Card::Env module Support def with_params hash old_params = params.clone params.merge! hash yield ensure @params = old_params end def hash hashish case hashish when Hash then hashish.clone when ActionController::Parameters then hashish.to_unsafe_h else {} end end def reset_session if session.is_a? Hash @session = {} else controller&.reset_session end end end end end
Version data entries
13 entries across 13 versions & 1 rubygems