fixes to make work extension with the refinery 3.0.0 and rails 4.1