Sha256: 12576fef1f001c74190619eeeebe7ccb9935043d00d877bc82d931c010faf45f

Contents?: true

Size: 401 Bytes

Versions: 7

Compression:

Stored size: 401 Bytes

Contents

# frozen_string_literal: true

class Ckeditor::Picture < Ckeditor::Asset
  # for validation, see https://github.com/igorkasyanchuk/active_storage_validations

  def url_content
    rails_representation_url(storage_data.variant(resize: '800>').processed, only_path: true)
  end

  def url_thumb
    rails_representation_url(storage_data.variant(resize: '118x100').processed, only_path: true)
  end
end

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
ckeditor-5.1.3 lib/generators/ckeditor/templates/active_record/active_storage/ckeditor/picture.rb
ckeditor-5.1.2 lib/generators/ckeditor/templates/active_record/active_storage/ckeditor/picture.rb
ckeditor-5.1.1 lib/generators/ckeditor/templates/active_record/active_storage/ckeditor/picture.rb
glebtv-ckeditor-4.14.1 lib/generators/ckeditor/templates/active_record/active_storage/ckeditor/picture.rb
ckeditor-5.1.0 lib/generators/ckeditor/templates/active_record/active_storage/ckeditor/picture.rb
glebtv-ckeditor-4.13.1 lib/generators/ckeditor/templates/active_record/active_storage/ckeditor/picture.rb
glebtv-ckeditor-4.13.0 lib/generators/ckeditor/templates/active_record/active_storage/ckeditor/picture.rb