Added compatibility with rails 4.1

looks like the options hash is not present on the newer versions of rails.