Skip to content

Commit a6b1487

Browse files
author
Hiren.Bhalani-BTC
committed
change syntex as per ruby version.
1 parent a1af633 commit a6b1487

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

app/controllers/charts_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def tag_usage_report_chart
4747
end
4848

4949
def chart_options
50-
@chart_options = { :width => 450, :height => 400, :title => '', :legend => 'bottom' }
50+
@chart_options = { width: 450, height: 400, title: '', legend: 'bottom' }
5151
end
5252

5353
end

app/controllers/links_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def import
9191
end
9292

9393
def search
94-
@search_list = params[:search_string].empty? ? current_user_links.order(:created_at => :desc).paginate(page: page) :
94+
@search_list = params[:search_string].empty? ? current_user_links.order(created_at: :desc).paginate(page: page) :
9595
search_list.paginate(page: page)
9696
end
9797

app/controllers/users/registrations_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def update
4343
@user = User.find(current_user.id)
4444
if @user.update(account_update_params)
4545
set_flash_message :notice, :updated
46-
sign_in @user, :bypass => true
46+
sign_in @user, bypass: true
4747
redirect_to after_update_path_for(@user)
4848
else
4949
render "edit"

app/models/user.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def favourite_links
2020
end
2121

2222
def user_learned_links
23-
learn_time.order(:created_at => :desc).map { |link| link.link }.uniq
23+
learn_time.order(created_at: :desc).map { |link| link.link }.uniq
2424
end
2525

2626
def user_learn_count_till(date)

app/views/links/_links_list.html.erb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
<div class="showback" >
33
<div class="left"><i title= "<%= link.link_type.name %>" class='<%= "#{set_category_icon(link)}" %>'></i><br/>
44
<span id="learn_count_<%=link.id %>">
5-
<%= render :partial => 'learn_count', :locals => {link: link} %>
5+
<%= render partial: 'learn_count', locals: {link: link} %>
66
</span><br>
77
<i id="fav_<%=link.id %>">
8-
<%= render :partial => 'favourite_btn', :locals => {link: link} %>
8+
<%= render partial: 'favourite_btn', locals: {link: link} %>
99
</i>
1010
</div><p>
1111
<%= link_to "#{link.title}", link.url, target: '_blank'%></p>

0 commit comments

Comments
 (0)