steveklabnik / request_store

Per-request global storage for Rack.
https://github.com/steveklabnik/request_store
MIT License
1.48k stars 87 forks source link

Refactoring to delegate things to `store` method. #36

Closed americodls closed 9 years ago

americodls commented 9 years ago

I made a refactoring to delegating and aliasing some methods. IMHO these changes avoid duplications and improve the readability.

If you agree, enjoy it. If not, please, give me some feedback to aggregate to my knowledge.

Best regards.

steveklabnik commented 9 years ago

Hey thanks! I'm not entirely sure that it's worth it, but I guess Forwardable is in the standard library...

americodls commented 9 years ago

Thanks for your comments. I agree with them, so I made some more adjustments. It looks better now?

steveklabnik commented 9 years ago

I think ultimately I prefer the straight-up implementation. Thank you though!

steveklabnik commented 9 years ago

(If this were a more complex project, I might consider it)