Squashed:

FIX: Fix for #218

REFACTOR: proc instead of if statement as suggested by @Daxter

FIX: syntax error

CHG: unified getting a name of resource class

CHG: There's no need to invoke ActiveSupport::Concern here. This version works just as well, with considerably less magic - help from Daxter