Commit 2155b5f7 by thanhnd

fix syntax review Toi-san 20200508

parent b4e5943b
Pipeline #606 failed with stages
in 0 seconds
# frozen_string_literal: true
class AddDeviseToUsers < ActiveRecord::Migration[6.0] class AddDeviseToUsers < ActiveRecord::Migration[6.0]
def change def change
change_table :users do |t| change_table :users do |t|
......
require 'rsolr' require 'rsolr'
class Solr class Solr
attr_accessor :response, :solr attr_accessor :response, :solr
def initialize def initialize
# Direct connection # Direct connection
...@@ -13,4 +13,4 @@ class Solr ...@@ -13,4 +13,4 @@ class Solr
response = solr.paginate page, 10, 'select', :params => {:q => "job_name:#{str}"} response = solr.paginate page, 10, 'select', :params => {:q => "job_name:#{str}"}
response['response']['docs'] response['response']['docs']
end end
end end
\ No newline at end of file \ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment