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.8.6 app/helpers/effective_regions_controller_helper.rb
effective_regions-1.8.5 app/helpers/effective_regions_controller_helper.rb
effective_regions-1.8.4 app/helpers/effective_regions_controller_helper.rb
effective_regions-1.7.6 app/helpers/effective_regions_controller_helper.rb
effective_regions-1.8.3 app/helpers/effective_regions_controller_helper.rb
effective_regions-1.8.2 app/helpers/effective_regions_controller_helper.rb
effective_regions-1.8.1 app/helpers/effective_regions_controller_helper.rb
effective_regions-1.8.0 app/helpers/effective_regions_controller_helper.rb
effective_regions-1.7.5 app/helpers/effective_regions_controller_helper.rb
effective_regions-1.7.4 app/helpers/effective_regions_controller_helper.rb
effective_regions-1.7.3 app/helpers/effective_regions_controller_helper.rb
effective_regions-1.7.2 app/helpers/effective_regions_controller_helper.rb
effective_regions-1.7.1 app/helpers/effective_regions_controller_helper.rb
effective_regions-1.7.0 app/helpers/effective_regions_controller_helper.rb
effective_regions-1.6.14 app/helpers/effective_regions_controller_helper.rb
effective_regions-1.6.12 app/helpers/effective_regions_controller_helper.rb
effective_regions-1.6.11 app/helpers/effective_regions_controller_helper.rb
effective_regions-1.6.10 app/helpers/effective_regions_controller_helper.rb
effective_regions-1.6.9 app/helpers/effective_regions_controller_helper.rb
effective_regions-1.6.8 app/helpers/effective_regions_controller_helper.rb