app/models/tool.rb
# Fetch json spec file from github everytime when save model and json_spec blank
#  call the force: .send(:check_json_spec)
Fetch json spec file from github everytime when save model and json_spec blank
call the force: .send(:check_json_spec)
Fetch json spec file from github everytime when save model and json_spec blank call the force : . send ( : check_json_spec )
def fetch_json_file
    return if json_spec.present?
    FetchJsonFile.enqueue(id)
  end
def fetch_json_file return if json_spec . present? FetchJsonFile . enqueue ( id ) end
Fetch json spec file from github everytime when save model and json_spec blank
call the force: .send(:check_json_spec)
Fetch json spec file from github everytime when save model and json_spec blank call the force : . send ( : check_json_spec )