Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- begin
- subscription = Hashie::Mash.new subscription.attributes # This fix was needed with this version of Mongoid, was throwing an "each_pair" error...
- rescue
- subscription = Hashie::Mash.new subscription # This fix was needed with this version of Mongoid, was throwing an "each_pair" error...
- end
Add Comment
Please, Sign In to add comment