Sha256: cb8cdd6589eb34fcd815eddb8ffd6c0b9afd1cecb4eade762b134dde56405bbb
Contents?: true
Size: 372 Bytes
Versions: 2
Compression:
Stored size: 372 Bytes
Contents
module MinimalExposure class ViewParameters def initialize(the_rails_view_assigns) @the_view_assigns = the_rails_view_assigns.symbolize_keys @vp = {} end def keys @the_view_assigns.keys end def [](key) @vp[key] ||= @the_view_assigns[key] end def method_missing(m, *args) @vp.send(m, *args) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
minimal_exposure-0.0.2 | lib/minimal_exposure/view_parameters.rb |
minimal_exposure-0.0.1 | lib/minimal_exposure/view_parameters.rb |