Sha256: 58ef0be53f75797b5aa11ce98d0ebf063d68c868b88e447c1f10cce0de7d4862
Contents?: true
Size: 370 Bytes
Versions: 1
Compression:
Stored size: 370 Bytes
Contents
module Storytime module MediaHelper def show_media_insert_button? controller = params[:controller].split("/").last controller == "pages" || controller == "posts" end def full_media_file_url(media) if media.file_url.starts_with?("http") media.file_url else root_url[0..-2]+media.file_url end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
storytime-0.0.1 | app/helpers/storytime/media_helper.rb |