Fixes #12
Merge pull request #18 from jalyna/bugfix-inheritance

Fixes #12
Merge branch 'master' into rails-support