Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added editable file url

  • Loading branch information...
commit 5c651423e61aa6ce51129b017e6dec828fcb0d75 1 parent 5ac95d5
Alex Sanford alexsanford authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 app/presenters/locomotive/editable_file_presenter.rb
4 app/presenters/locomotive/editable_file_presenter.rb
View
@@ -9,6 +9,10 @@ def filename
File.basename(self.content)
end
+ def url
+ self.content
+ end
+
def included_methods
super + %w(filename content url)
end
Please sign in to comment.
Something went wrong with that request. Please try again.