Sha256: 0f61e72428381c0dd47fde4187cedd89fbaf35498d292d0bd1af83460154e93a

Contents?: true

Size: 308 Bytes

Versions: 20

Compression:

Stored size: 308 Bytes

Contents

module KepplerFrontend
  # Policy for Function model
  class FunctionPolicy < ControllerPolicy
    attr_reader :user, :objects

    def initialize(user, objects)
      @user = user
      @objects = objects
    end

    def editor_save?
      true
    end

    def destroy_param?
      true
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
keppler-2.1.18 installer/core/rockets/keppler_frontend/app/policies/keppler_frontend/function_policy.rb
keppler-2.1.17 installer/core/rockets/keppler_frontend/app/policies/keppler_frontend/function_policy.rb
keppler-2.1.16 installer/core/rockets/keppler_frontend/app/policies/keppler_frontend/function_policy.rb
keppler-2.1.15 installer/core/rockets/keppler_frontend/app/policies/keppler_frontend/function_policy.rb
keppler-2.1.14 installer/core/rockets/keppler_frontend/app/policies/keppler_frontend/function_policy.rb
keppler-2.1.13 installer/core/rockets/keppler_frontend/app/policies/keppler_frontend/function_policy.rb
keppler-2.1.12 installer/core/rockets/keppler_frontend/app/policies/keppler_frontend/function_policy.rb
keppler-2.1.11 installer/core/rockets/keppler_frontend/app/policies/keppler_frontend/function_policy.rb
keppler-2.1.10 installer/core/rockets/keppler_frontend/app/policies/keppler_frontend/function_policy.rb
keppler-2.1.9 installer/core/rockets/keppler_frontend/app/policies/keppler_frontend/function_policy.rb
keppler-2.1.8 installer/core/rockets/keppler_frontend/app/policies/keppler_frontend/function_policy.rb
keppler-2.1.7 installer/core/rockets/keppler_frontend/app/policies/keppler_frontend/function_policy.rb
keppler-2.1.6 installer/core/rockets/keppler_frontend/app/policies/keppler_frontend/function_policy.rb
keppler-2.1.5 installer/core/rockets/keppler_frontend/app/policies/keppler_frontend/function_policy.rb
keppler-2.1.4 installer/core/rockets/keppler_frontend/app/policies/keppler_frontend/function_policy.rb
keppler-2.1.3 installer/core/rockets/keppler_frontend/app/policies/keppler_frontend/function_policy.rb
keppler-2.1.2 installer/core/rockets/keppler_frontend/app/policies/keppler_frontend/function_policy.rb
keppler-2.1.1 installer/core/rockets/keppler_frontend/app/policies/keppler_frontend/function_policy.rb
keppler-2.1.pre.p1 installer/core/rockets/keppler_frontend/app/policies/keppler_frontend/function_policy.rb
keppler-2.1 installer/core/rockets/keppler_frontend/app/policies/keppler_frontend/function_policy.rb