Skip to content

Commit

Permalink
Merge pull request #65 from indentlabs/dont-ask-about-relations
Browse files Browse the repository at this point in the history
temporarily disable seren card on dashboard
  • Loading branch information
drusepth committed Sep 30, 2016
2 parents c78b903 + 62ecf10 commit cc8d6dc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/controllers/main_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ def dashboard
@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))
#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
end
Expand Down

0 comments on commit cc8d6dc

Please sign in to comment.