Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def self.perform(subscription)
- Noun.new
- require Rails.root.join("app","models","noun","twitter","user")
- require Rails.root.join("app","models","noun","dropbox","file")
- # debugger
- 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
- puts "Gather #{subscription.app_id} connections"
Add Comment
Please, Sign In to add comment