Skip to content
This repository has been archived by the owner on Jul 13, 2023. It is now read-only.

added :present? method to attachment as alias to :file? #443

Closed
wants to merge 1 commit into from
Closed

added :present? method to attachment as alias to :file? #443

wants to merge 1 commit into from

Conversation

rwz
Copy link
Contributor

@rwz rwz commented Mar 30, 2011

  - if @user.avatar.present?
    .avatar= image_tag @user.avatar.url(:small)

@rwz
Copy link
Contributor Author

rwz commented Mar 30, 2011

looks useful to me

@jyurek
Copy link

jyurek commented Apr 20, 2011

Thanks for this patch, I've pulled it in.

@jyurek jyurek closed this Apr 20, 2011
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants