Sha256: 8d250fdee1c8a161febc5468eac56e7404f1490f897f71763da8c2fbabf66a60
Contents?: true
Size: 317 Bytes
Versions: 32
Compression:
Stored size: 317 Bytes
Contents
module EffectiveRegionsControllerHelper def effectively_editing? @effectively_editing ||= ( request.fullpath.include?('edit=true') && (EffectiveRegions.authorized?(controller, :edit, Effective::Region.new()) rescue false) ) end alias_method :effectively_editting?, :effectively_editing? end
Version data entries
32 entries across 32 versions & 1 rubygems