Refs #45 Avoid delegate to: :class

to: :class is only available in activesupport 4+