Class: Ckeditor::Picture
- Inherits:
-
Asset
- Object
- Asset
- Ckeditor::Picture
- Defined in:
- app/models/ckeditor/picture.rb
Instance Method Summary collapse
Instance Method Details
#url_content ⇒ Object
11 12 13 14 15 |
# File 'app/models/ckeditor/picture.rb', line 11 def url_content # url(:content) # url_t = (ENV['RAILS_URL'].blank? || ) ? "http://localhost:3000" : "#{ENV['RAILS_URL']}#{ENV['RAILS_RELATIVE_URL_ROOT']}" "#{ENV['RAILS_URL'].presence || "http://localhost:3000"}#{ENV['RAILS_RELATIVE_URL_ROOT'].presence}#{url(:content)}" end |