Document draper versions #5

amiel opened this Issue Mar 28, 2013 · 2 comments


None yet

2 participants

Carnes Media member

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


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
Carnes Media member

That should work

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