app/helpers/view_helper.rb
# converts a standard url helper method to a versionfied one
# 
# For converting 'user_url' to a versionfied
# 	
# 	resource_path_to('user_url', user1) #=> v1_user_url(user1)
# 
converts a standard url helper method to a versionfied one
For converting 'user_url' to a versionfied


converts a standard url helper method to a versionfied one For converting ' user_url ' to a versionfied
def render_user_avatar(json, user)
		if user.avatar.nil?
			json.image_url user.get_avatar
			json.thumb_url user.get_avatar
		else 
			render_image(json, user.avatar)	
		end
	end
def render_user_avatar ( json , user ) if user . avatar . nil? json . image_url user . get_avatar json . thumb_url user . get_avatar else render_image ( json , user . avatar ) end end
converts a standard url helper method to a versionfied one
For converting 'user_url' to a versionfied
converts a standard url helper method to a versionfied one For converting ' user_url ' to a versionfied
json
<not_specific>
user
<not_specific>