Skip to content

Commit

Permalink
updating syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
mschoch committed Oct 5, 2012
1 parent f47b1e1 commit 77937e3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/controllers/articles_controller.rb
Expand Up @@ -86,7 +86,7 @@ def show
end

if current_user && current_user.preferences
current_user.increment!(@article['type'])
current_user.increment!(@article.type)
end
Event.new(:type => Event::ACCESS, :user => (current_user.email rescue nil), :resource => @article.id.to_s).save
end
Expand All @@ -98,12 +98,12 @@ def random
@view_count = @article.count_as_viewed

wiki = WikiCloth::Parser.new({
:data => @article['content']
:data => @article.content
})
@content = Sanitize.clean(wiki.to_html, :elements => ['p', 'ul', 'li', 'i', 'h2', 'h3'], :remove_contents => ['table', 'div']).gsub(/\[[A-z0-9]+\]/, '')

if current_user && current_user.preferences
current_user.increment!(@article['type'])
current_user.increment!(@article.type)
end
end

Expand Down

0 comments on commit 77937e3

Please sign in to comment.