Sha256: 109544102252822a6df830afaa209314facfb59478174641052b72c5c1843800

Contents?: true

Size: 276 Bytes

Versions: 19

Compression:

Stored size: 276 Bytes

Contents

class PlacePolicy < ApplicationPolicy
  def index?
    true
  end

  def show?
    true
  end

  def create?
    user.try(:has_role?, 'Librarian')
  end

  def update?
    user.try(:has_role?, 'Librarian')
  end

  def destroy?
    user.try(:has_role?, 'Librarian')
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
enju_event-0.3.5 app/policies/place_policy.rb
enju_event-0.4.0.rc.1 app/policies/place_policy.rb
enju_event-0.3.4 app/policies/place_policy.rb
enju_event-0.3.3 app/policies/place_policy.rb
enju_event-0.4.0.beta.2 app/policies/place_policy.rb
enju_event-0.4.0.beta.1 app/policies/place_policy.rb
enju_event-0.3.2 app/policies/place_policy.rb
enju_event-0.3.1 app/policies/place_policy.rb
enju_event-0.3.0 app/policies/place_policy.rb
enju_event-0.3.0.rc.1 app/policies/place_policy.rb
enju_event-0.3.0.beta.1 app/policies/place_policy.rb
enju_event-0.2.3 app/policies/place_policy.rb
enju_event-0.2.2 app/policies/place_policy.rb
enju_event-0.2.1 app/policies/place_policy.rb
enju_event-0.2.0 app/policies/place_policy.rb
enju_event-0.2.0.beta.4 app/policies/place_policy.rb
enju_event-0.2.0.beta.3 app/policies/place_policy.rb
enju_event-0.2.0.beta.2 app/policies/place_policy.rb
enju_event-0.2.0.beta.1 app/policies/place_policy.rb