Skip to content

Commit

Permalink
Merge branch 'release/0.14.7.13'
Browse files Browse the repository at this point in the history
  • Loading branch information
kalashnikovisme committed Mar 3, 2017
2 parents 2f14e6d + 2897808 commit 26dd2ef
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 66 deletions.
1 change: 1 addition & 0 deletions app/models/user.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ class User < ActiveRecord::Base
has_many :comments, dependent: :destroy
has_and_belongs_to_many :teams
has_many :merits, class_name: 'ActivityLines::Corporative::Merit'
has_many :ya_lider_participations, class_name: 'ActivityLines::Lider::YaLider::Participation'

validates :email, email: true,
allow_blank: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
= link_to t('helpers.links.back'), admin_activity_lines_lider_ya_lider_path(@stage.contest), class: 'btn btn-default'
= render 'web/admin/default/search', model_class: ActivityLines::Lider::YaLider::Participant
.row
= render 'web/admin/activity_lines/lider/ya_lider/participants/list', activity_lines_lider_ya_lider_participants: @current_participants
= render 'web/admin/activity_lines/lider/ya_lider/participants/list', activity_lines_lider_ya_lider_participants: @current_participants, for_partial: :stage_show
.row
- if @stage.is_the_first?
= link_to t('helpers.links.add'), new_admin_activity_lines_lider_ya_lider_participant_path(activity_lines_lider_ya_lider_particpant: { contest_id: @stage.contest_id }), class: 'btn btn-success'
Expand Down
2 changes: 1 addition & 1 deletion bin/data_fixes/user_to_member_fix.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
user = User.find ENV['USER_ID']
member = Member.find ENV['MEMBER_ID']
puts "Updating associations...".green
[:authentications, :article, :registrations, :logged_actions, :comments].each do |association|
[:authentications, :article, :registrations, :logged_actions, :comments, :ya_lider_participations].each do |association|
user.send(association).each do |obj|
obj.update_attributes! user_id: member.id
end
Expand Down
4 changes: 4 additions & 0 deletions config/locales/ru/ru.yml
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,10 @@ ru:
form:
ask_your_question: Задайте свой вопрос
anonym: Анонимно?
lider:
ya_liders:
show:
participants: Участники конкурса
sessions:
new:
title: Авторизация
Expand Down
64 changes: 0 additions & 64 deletions test/controllers/web/admin/oauth/apps_controller_test.rb

This file was deleted.

0 comments on commit 26dd2ef

Please sign in to comment.