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

Version Path
effective_regions-1.6.7 app/helpers/effective_regions_controller_helper.rb
effective_regions-1.6.6 app/helpers/effective_regions_controller_helper.rb
effective_regions-1.6.5 app/helpers/effective_regions_controller_helper.rb
effective_regions-1.6.4 app/helpers/effective_regions_controller_helper.rb
effective_regions-1.6.3 app/helpers/effective_regions_controller_helper.rb
effective_regions-1.6.2 app/helpers/effective_regions_controller_helper.rb
effective_regions-1.6.1 app/helpers/effective_regions_controller_helper.rb
effective_regions-1.6.0 app/helpers/effective_regions_controller_helper.rb
effective_regions-1.5.0 app/helpers/effective_regions_controller_helper.rb
effective_regions-1.4.11 app/helpers/effective_regions_controller_helper.rb
effective_regions-1.4.10 app/helpers/effective_regions_controller_helper.rb
effective_regions-1.4.9 app/helpers/effective_regions_controller_helper.rb