Sha256: 278a7adfa3ac10cd4e3dee4b2499123a9142398cb2102ed702b8bb94fcb369f6

Contents?: true

Size: 270 Bytes

Versions: 3

Compression:

Stored size: 270 Bytes

Contents

class AnonymousPermission < Portier::ApplicationPermission
  def default
    false
  end

  def index
    true
  end

  def create
    true
  end

  def modify
    false
  end

  def destroy
    anonymou.open?
  end

  def permitted_params
    [:name, :email]
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
portier-1.1.1 spec/dummy/app/permissions/anonymous_permission.rb
portier-1.1.0 spec/dummy/app/permissions/anonymous_permission.rb
portier-1.0.3 spec/dummy/app/permissions/anonymous_permission.rb