Commit bfdd8fe0 by Đường Sỹ Hoàng

Fixed naming

parent 85e4f1fd
//= require bootstrap //= require bootstrap.min
...@@ -66,7 +66,7 @@ h1, h2, h3, h4, h5, h6 { ...@@ -66,7 +66,7 @@ h1, h2, h3, h4, h5, h6 {
.form-inline-city { .form-inline-city {
padding: 5px; padding: 5px;
} }A
.form-inline-industry { .form-inline-industry {
padding: 5px; padding: 5px;
......
...@@ -3,7 +3,7 @@ class Industry < ApplicationRecord ...@@ -3,7 +3,7 @@ class Industry < ApplicationRecord
has_many :jobs, through: :industry_jobs has_many :jobs, through: :industry_jobs
def self.sort_top_industries def self.sort_top_industries
@cindustries ||= all.sort_by(&:jobs_count).reverse @industries ||= all.sort_by(&:jobs_count).reverse
end end
def jobs_count def jobs_count
......
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