gravtastic icon indicating copy to clipboard operation
gravtastic copied to clipboard

Allow options to be set with a proc/lambda

Open unreal opened this issue 12 years ago • 8 comments

I needed to be able to set the default gravatar image based on the actual object instance.

example:

class User
  # default image is the first letter of the user's first name
  gravtastic default: lambda { |u| "http://assets.example.com/#{u.first_name[0]}.jpg" }

unreal avatar Feb 05 '13 17:02 unreal

That's cool, but you should update doc as well.

VadimPushtaev avatar Feb 06 '13 05:02 VadimPushtaev

Hope this looks ok!

unreal avatar Feb 07 '13 02:02 unreal

Wish this could have been merged. Need this functionality as well.

terracatta avatar Sep 11 '13 16:09 terracatta

Hey! Just wondering why this hasn't been merged? Would love to have this functionality as well.

alejorivera avatar Oct 27 '14 21:10 alejorivera

Looks like the author abandons this project. He ignores letters and comments about this for a while.

VadimPushtaev avatar Nov 19 '14 07:11 VadimPushtaev

I thought I had push rights to this repos but it seems my boss got them as I committed it on his machine ages ago. Perhaps some of the other contributors given access by @chrislloyd can chime in: @xaviershay, @gohanlon, @moorage, @salted, @ jeffkreeftmeijer, @achiu.

If that doesn't work, I suppose someone passionate about this project can take over with their fork... Good luck!

vjcharles avatar Nov 19 '14 23:11 vjcharles

@jeffkreeftmeijer, ping.

vjcharles avatar Nov 19 '14 23:11 vjcharles

@vjcharles looks like you have the collaborator tag here no?

hayksaakian avatar Jan 31 '15 05:01 hayksaakian