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 16 |
# File 'app/models/ckeditor/picture.rb', line 11 def url_content # url_t = (ENV['RAILS_URL'].blank? || ) ? "http://localhost:3000" : "#{ENV['RAILS_URL']}#{ENV['RAILS_RELATIVE_URL_ROOT']}" # return url(:content) # return "#{ENV['RAILS_URL'].presence}#{ENV['RAILS_RELATIVE_URL_ROOT'].presence}#{url(:content)}" return "#{ENV['RAILS_URL'].presence}#{url(:content)}" end |