thingspeak/app/models/feed.rb
Alan Bradburne 4f0354303f Improve channel, user and api_key models with basic scopes, correct references and protect attributes.
Simplify channels & user controllers and models, moving code to the models.
Remove catch-all route and ensure all actions are specified, fixing url paths.
Change clone to dup in feed_controller as using clone seems to affect the cloned object (problem only in ruby 1.9.3?)
2012-02-09 23:42:16 +00:00

34 lines
543 B
Ruby

class Feed < ActiveRecord::Base
belongs_to :channel
self.include_root_in_json = false
attr_readonly :created_at
attr_protected :channel_id
end
# == Schema Information
#
# Table name: feeds
#
# id :integer(4) not null, primary key
# channel_id :integer(4)
# raw_data :text
# field1 :text
# field2 :text
# field3 :text
# field4 :text
# field5 :text
# field6 :text
# field7 :text
# field8 :text
# created_at :datetime
# updated_at :datetime
# entry_id :integer(4)
#