Update metafy.rb

Allow use with rails 4