Sha256: 74e26dace0892389f92f128f9e377ccd0add852a16680023707d2c4882546bfd

Contents?: true

Size: 326 Bytes

Versions: 39

Compression:

Stored size: 326 Bytes

Contents

class MediumOfPerformancePolicy < ApplicationPolicy
  def index?
    true
  end

  def show?
    true
  end

  def create?
    true if user.try(:has_role?, 'Administrator')
  end

  def update?
    true if user.try(:has_role?, 'Administrator')
  end

  def destroy?
    true if user.try(:has_role?, 'Administrator')
  end
end

Version data entries

39 entries across 38 versions & 2 rubygems

Version Path
enju_biblio-0.3.4 app/policies/medium_of_performance_policy.rb
enju_biblio-0.3.3 app/policies/medium_of_performance_policy.rb
enju_biblio-0.3.2 app/policies/medium_of_performance_policy.rb
enju_biblio-0.3.1 app/policies/medium_of_performance_policy.rb
enju_biblio-0.3.0 app/policies/medium_of_performance_policy.rb
enju_biblio-0.3.0.rc.1 app/policies/medium_of_performance_policy.rb
enju_biblio-0.3.0.beta.2 app/policies/medium_of_performance_policy.rb
enju_biblio-0.2.5 app/policies/medium_of_performance_policy.rb
enju_biblio-0.2.4 app/policies/medium_of_performance_policy.rb
enju_biblio-0.2.3 app/policies/medium_of_performance_policy.rb
enju_biblio-0.2.2 app/policies/medium_of_performance_policy.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/enju_biblio-0.2.1/app/policies/medium_of_performance_policy.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/enju_biblio-0.2.0/app/policies/medium_of_performance_policy.rb
enju_biblio-0.2.1 app/policies/medium_of_performance_policy.rb
enju_biblio-0.2.0 app/policies/medium_of_performance_policy.rb
enju_biblio-0.2.0.beta.4 app/policies/medium_of_performance_policy.rb
enju_biblio-0.2.0.beta.3 app/policies/medium_of_performance_policy.rb
enju_biblio-0.2.0.beta.2 app/policies/medium_of_performance_policy.rb
enju_biblio-0.2.0.beta.1 app/policies/medium_of_performance_policy.rb