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