Sha256: 1de9ee76439bd40bfba6d561d1a94cba60e2c6d9c10d3eeaf32d4e0bfb51f385

Contents?: true

Size: 260 Bytes

Versions: 8

Compression:

Stored size: 260 Bytes

Contents

class Ckeditor::PicturePolicy
  attr_reader :user, :picture

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

  def index?
    user.present?
  end

  def create?
    user.present?
  end

  def destroy?
    user.present?
  end
end

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
glebtv-ckeditor-4.11.1 lib/generators/ckeditor/templates/pundit_policy/picture_policy.rb
ckeditor-4.3.0 lib/generators/ckeditor/templates/pundit_policy/picture_policy.rb
glebtv-ckeditor-4.7.3.1 lib/generators/ckeditor/templates/pundit_policy/picture_policy.rb
glebtv-ckeditor-4.7.3 lib/generators/ckeditor/templates/pundit_policy/picture_policy.rb
ckeditor-4.2.4 lib/generators/ckeditor/templates/pundit_policy/picture_policy.rb
ckeditor-4.2.3 lib/generators/ckeditor/templates/pundit_policy/picture_policy.rb
ckeditor-4.2.2 lib/generators/ckeditor/templates/pundit_policy/picture_policy.rb
ckeditor-4.2.1 lib/generators/ckeditor/templates/pundit_policy/picture_policy.rb