Sha256: 41c30b1202fa8eed0949823a4b16289d1cd51a51afc9e3c2558a62ec5e79bef5

Contents?: true

Size: 302 Bytes

Versions: 6

Compression:

Stored size: 302 Bytes

Contents

module EffectiveRegionsControllerHelper
  def effectively_editing?
    @effectively_editing ||= (
      request.fullpath.include?('edit=true') &&
      EffectiveResources.authorized?(controller, :edit, Effective::Region.new)
    )
  end
  alias_method :effectively_editting?, :effectively_editing?
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
effective_regions-1.11.0 app/helpers/effective_regions_controller_helper.rb
effective_regions-1.10.3 app/helpers/effective_regions_controller_helper.rb
effective_regions-1.10.2 app/helpers/effective_regions_controller_helper.rb
effective_regions-1.10.1 app/helpers/effective_regions_controller_helper.rb
effective_regions-1.10.0 app/helpers/effective_regions_controller_helper.rb
effective_regions-1.9.0 app/helpers/effective_regions_controller_helper.rb