Skip to content

Commit

Permalink
test ralis cache
Browse files Browse the repository at this point in the history
  • Loading branch information
keweizhan committed Mar 15, 2024
1 parent 9a1687f commit ec68be0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/exercises_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def show_exercise
render file: "exercises/Jsparson/exercise/simple/#{step}", locals: { external_id: get_external_id(step) }
end


#
def get_external_id(step)
full_name = "parsons_#{step}"
exercise = Exercise.where('name LIKE ?', "%#{full_name}%").first.reload
Expand Down

0 comments on commit ec68be0

Please sign in to comment.