Class: Ckeditor::Picture

Inherits:
Asset
  • Object
show all
Defined in:
app/models/ckeditor/picture.rb

Overview

CKEditor picture

Instance Method Summary collapse

Instance Method Details

#url_contentString

Integral does not create a content version so this is basically an alias method for CKEditor

Returns:

  • (String)

    URL of picture



9
10
11
# File 'app/models/ckeditor/picture.rb', line 9

def url_content
  url
end

#url_thumbString

Before the picture is processed in the background thumbnail URL may not be available

Returns:

  • (String)

    URL of picture



16
17
18
19
20
# File 'app/models/ckeditor/picture.rb', line 16

def url_thumb
  return url(:thumb) if url(:thumb)

  url
end