Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adds delegetion for eof? to AD::Http::UploadedFile #2664

Closed
wants to merge 1 commit into from

Conversation

jigfox
Copy link
Contributor

@jigfox jigfox commented Aug 23, 2011

if you want to read the file you may need to ask if there is something
to read from


def eof?
@tempfile.eof?
end
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about delegate :eof?, :to => :@tempfile?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought about that, but it would be different than #open, #path, #read, #rewind, and #size. I didn't want to change the whole class.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Then it's fine - local consistency is the most important.

@jrafanie
Copy link
Contributor

jrafanie commented Jan 5, 2012

I'm running into this too, any chance of pulling in this change?

@carlosantoniodasilva
Copy link
Member

@jigfox hey, could you please bring this up-to-date with current master? I guess it'd possible to merge then, thanks.

if you want to read the file you may need to ask if there is something
to read from
@jigfox
Copy link
Contributor Author

jigfox commented Mar 27, 2012

@carlosantoniodasilva I updated the code for the current master, it would be great if this can be merged

@carlosantoniodasilva
Copy link
Member

@jigfox ok cool, I'll ping someone to double-check and merge. Thanks.

@drogus drogus closed this Mar 27, 2012
@tenderlove tenderlove reopened this Sep 10, 2014
@tenderlove tenderlove self-assigned this Sep 10, 2014
@rafaelfranca rafaelfranca added this to the 5.0.0 milestone Nov 19, 2014
@rafaelfranca
Copy link
Member

This is already present since Rails 4.0.0. Thank you for the pull request.

@rafaelfranca rafaelfranca modified the milestones: 5.0.0 [temp], 5.0.0 Dec 30, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants