Sha256: 062de1e95260e11de52e6836072cf18c8ed756132b9aecaa781140882b99d9e5
Contents?: true
Size: 362 Bytes
Versions: 2
Compression:
Stored size: 362 Bytes
Contents
require 'minimal_exposure/view_parameters' module MinimalExposure module ViewHelpers def view_parameters @view_parameters ||= ViewParameters.new(the_view_assigns) end alias vp view_parameters def the_view_assigns Rails.env == 'test' ? assigns[:_encapsulated_assigns] : controller.view_assigns.except('_routes') end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
minimal_exposure-0.0.2 | lib/minimal_exposure/view_helpers.rb |
minimal_exposure-0.0.1 | lib/minimal_exposure/view_helpers.rb |