Skip to content

Commit

Permalink
Merge pull request #66 from indentlabs/reenable-dashboard-card
Browse files Browse the repository at this point in the history
Re-enable dashboard serendipitous card
  • Loading branch information
drusepth committed Sep 30, 2016
2 parents cc8d6dc + ae0a04c commit 546735e
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions app/controllers/main_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,6 @@ def dashboard

content_type = %w(characters locations items).sample
@content = current_user.send(content_type).sample

begin
#questionable_params = @content.class.attribute_categories.flat_map { |_k, v| v[:attributes] }.reject { |k| k.end_with?('_id') }
#@question = QuestionService.question(Content.new @content.slice(*questionable_params))
rescue
end
@question = @content.question unless @content.nil?
end
end

0 comments on commit 546735e

Please sign in to comment.