trabajo-afectivo/app/models/channel.rb

13 lines
307 B
Ruby
Raw Normal View History

2012-04-10 14:06:46 +00:00
class Channel < ActiveRecord::Base
def self.fetch
Rails.application.config.channel.each { |channel|
begin
c = eval channel[:module] + '.new'
c.fetch(channel)
rescue Exception => e
puts "can't use " + channel[:module]
puts e.inspect
end
}
end
end