Module: EffectiveRegionsControllerHelper

Defined in:
app/helpers/effective_regions_controller_helper.rb

Instance Method Summary collapse

Instance Method Details

#effectively_editing?Boolean Also known as: effectively_editting?

Returns:

  • (Boolean)


2
3
4
5
6
7
# File 'app/helpers/effective_regions_controller_helper.rb', line 2

def effectively_editing?
  @effectively_editing ||= (
    request.fullpath.include?('edit=true') &&
    (EffectiveRegions.authorized?(controller, :edit, Effective::Region.new()) rescue false)
  )
end