From 82eadc69ca18fb5b7e1c09eebe728e7944826f37 Mon Sep 17 00:00:00 2001 From: Marty Schoch Date: Fri, 5 Oct 2012 11:45:59 -0400 Subject: [PATCH] defining attributes --- app/models/article.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/article.rb b/app/models/article.rb index 1f99339..9dc39bd 100644 --- a/app/models/article.rb +++ b/app/models/article.rb @@ -17,7 +17,7 @@ def persisted? end attr_accessor :id, :meta, :title, :type, :url, :authors, :contributors, :content, :categories, :attrs, :views, :popularity, :quality - @@keys = [:id, :title, :type, :url, :authors, :contributors, :content, :categories, :attrs, :views, :popularity, :quality] + attribute :id, :title, :type, :url, :authors, :contributors, :content, :categories, :attrs, :views, :popularity, :quality def self.search(term={}, options={}) ids = []