Sha256: a009af50ff57f4bd6fb9b1c452949c2d38d0feb5a6e26654db7acfdee7f7c471
Contents?: true
Size: 455 Bytes
Versions: 1
Compression:
Stored size: 455 Bytes
Contents
# frozen_string_literal: true # Policy for rockets model class RocketPolicy < ControllerPolicy attr_reader :user, :object def initialize(user, object) @user = user @object = object end def rockets? keppler_admin? end def create? keppler_admin? end def install? keppler_admin? end def uninstall? @object.name && Rocket.core_depending.exclude?(@object.name) end def build? keppler_admin? end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
keppler-2.1.22 | installer/core/app/policies/rocket_policy.rb |