Commit 85f168244d1181b461d691db005c22b93d52888e

Authored by Krzysiek Szczuka
1 parent 9a94d624
Exists in master

LetterAvatar.path_to_url helper method

Showing 1 changed file with 4 additions and 0 deletions   Show diff stats
lib/letter_avatar.rb
... ... @@ -52,4 +52,8 @@ module LetterAvatar
52 52  
53 53 true
54 54 end
  55 +
  56 + def self.path_to_url(path)
  57 + path.to_s.sub('public/', '/')
  58 + end
55 59 end
... ...