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

Document draper versions #5

Open
amiel opened this issue Mar 28, 2013 · 2 comments
Open

Document draper versions #5

amiel opened this issue Mar 28, 2013 · 2 comments

Comments

@amiel
Copy link
Member

amiel commented Mar 28, 2013

Olson 0.2 supports older versions of draper (with model_class). master uses source_class instead.

@kristianfreeman
Copy link
Contributor

Could we alias model_class to source_class if it's undefined? I'm not near a computer with IRB so I can't fool around with it, but something like (warning, pseudo-code inbound):

unless respond_to?(model_class)
  alias_method :model_class, :source_class
end

@amiel
Copy link
Member Author

amiel commented Mar 28, 2013

That should work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants