Skip to content

Instantly share code, notes, and snippets.

@ColPanic
Created January 20, 2011 22:14
Show Gist options
  • Save ColPanic/788795 to your computer and use it in GitHub Desktop.
Save ColPanic/788795 to your computer and use it in GitHub Desktop.
How far into hell am I going?
@esi_dev = Kernel.const_get("Esi#{self.model_name}").new(@device.attributes.delete_if{|k,v|!Kernel.const_get("Esi#{self.model_name}").respond_to?(k)})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment