Skip to content

Commit

Permalink
defining attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
mschoch committed Oct 5, 2012
1 parent 7e6f52b commit 82eadc6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/article.rb
Expand Up @@ -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 = []
Expand Down

0 comments on commit 82eadc6

Please sign in to comment.