Sha256: d300855d4ddfeb62c6b1f9d3cf1281faec36825f0d962bbccf78b1ee57026c7c
Contents?: true
Size: 343 Bytes
Versions: 30
Compression:
Stored size: 343 Bytes
Contents
class Hash def compact delete_if { |k, v| v.blank? } end def cleanup whitelist = %w(controller action id input layout resource resource_id resource_action selected back_to) delete_if { |k, v| !whitelist.include?(k) } end end
Version data entries
30 entries across 30 versions & 1 rubygems