mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
Merge pull request #276 from openSUSE/review_140630_rubocop_fix_1
add skipped empty lines
This commit is contained in:
commit
16faf3bbe0
31 changed files with 35 additions and 29 deletions
|
|
@ -13,4 +13,4 @@ class Admin::DietchoicesController < ApplicationController
|
|||
redirect_to(admin_conference_dietary_list_path(:conference_id => @conference.short_title), :alert => "Dietary choices update failed: #{e.message}")
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
|||
|
|
@ -27,4 +27,4 @@ class Admin::DifficultyLevelsController < ApplicationController
|
|||
end
|
||||
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
|||
|
|
@ -93,4 +93,4 @@ class Admin::QuestionsController < ApplicationController
|
|||
@questions = Question.where(:global => true).all | Question.where(:conference_id => @conference.id)
|
||||
@questions_conference = @conference.questions
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
|||
|
|
@ -228,3 +228,4 @@ module Admin
|
|||
helper_method :social_event_count
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
|||
|
|
@ -13,4 +13,4 @@ class Admin::SupporterLevelsController < ApplicationController
|
|||
redirect_to(admin_conference_supporter_levels_path(:conference_id => @conference.short_title), :alert => "Supporter levels update failed: #{e.message}")
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
|||
|
|
@ -111,4 +111,4 @@ class EventAttachmentsController < ApplicationController
|
|||
format.json { head :no_content }
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
|||
|
|
@ -10,4 +10,4 @@ module ProposalHelper
|
|||
end.join("\n")
|
||||
str
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
|||
|
|
@ -11,4 +11,4 @@ module RegistrationHelper
|
|||
end.join("\n")
|
||||
str
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
|||
|
|
@ -96,4 +96,4 @@ class Datatable
|
|||
index = "sSortDir_#{index}"
|
||||
params[index] == "desc" ? "desc" : "asc"
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
|||
|
|
@ -5,4 +5,4 @@ class DifficultyLevel < ActiveRecord::Base
|
|||
has_many :events
|
||||
|
||||
validates :title, :presence => true
|
||||
end
|
||||
end
|
||||
|
|
|
|||
8
app/models/event_person.rb
Normal file
8
app/models/event_person.rb
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
class EventPerson < ActiveRecord::Base
|
||||
attr_accessible :event, :person, :person_id, :event_role
|
||||
# TODO Do we need these roles?
|
||||
ROLES = [["Speaker","speaker"], ["Submitter","submitter"], ["Moderator","moderator"]]
|
||||
|
||||
belongs_to :event
|
||||
belongs_to :person
|
||||
end
|
||||
|
|
@ -11,4 +11,4 @@ class Question < ActiveRecord::Base
|
|||
validates :answers, :presence => true
|
||||
|
||||
accepts_nested_attributes_for :answers, :allow_destroy => true
|
||||
end
|
||||
end
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
class Role < ActiveRecord::Base
|
||||
attr_accessible :name
|
||||
has_and_belongs_to_many :users
|
||||
end
|
||||
end
|
||||
|
|
|
|||
|
|
@ -16,4 +16,4 @@ class Room < ActiveRecord::Base
|
|||
self.guid = guid
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
|
|
|
|||
|
|
@ -3,4 +3,4 @@ class SocialEvent < ActiveRecord::Base
|
|||
|
||||
belongs_to :conference
|
||||
has_and_belongs_to_many :registrations
|
||||
end
|
||||
end
|
||||
|
|
|
|||
|
|
@ -15,4 +15,4 @@ class Track < ActiveRecord::Base
|
|||
self.guid = guid
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
|
|
|
|||
|
|
@ -5,4 +5,4 @@ class Vday < ActiveRecord::Base
|
|||
|
||||
has_many :vchoices
|
||||
has_many :vpositions, :through => :vchoices, :dependent => :destroy
|
||||
end
|
||||
end
|
||||
|
|
|
|||
|
|
@ -3,6 +3,6 @@ class Vote < ActiveRecord::Base
|
|||
|
||||
belongs_to :user
|
||||
belongs_to :event
|
||||
|
||||
delegate :name, to: :user
|
||||
|
||||
end
|
||||
|
|
|
|||
|
|
@ -15,4 +15,3 @@ class CreateEventPeopleTable < ActiveRecord::Migration
|
|||
drop_table :event_people
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
|||
|
|
@ -17,4 +17,3 @@ class CreateVenueTable < ActiveRecord::Migration
|
|||
end
|
||||
|
||||
end
|
||||
|
||||
|
|
|
|||
|
|
@ -9,4 +9,3 @@ class UserRolesTable < ActiveRecord::Migration
|
|||
drop_table :roles_users
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
|||
|
|
@ -23,4 +23,4 @@ for i in questions_yes_no do
|
|||
|
||||
Qanswer.create(:question_id => q.id, :answer_id => answer_no.id)
|
||||
Qanswer.create(:question_id => q.id, :answer_id => answer_yes.id)
|
||||
end
|
||||
end
|
||||
|
|
|
|||
|
|
@ -52,4 +52,4 @@ describe Admin::UsersController do
|
|||
end
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
|
|
|
|||
|
|
@ -6,4 +6,4 @@ FactoryGirl.define do
|
|||
conference
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
|
|
|
|||
|
|
@ -6,4 +6,4 @@ FactoryGirl.define do
|
|||
conference
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
|
|
|
|||
|
|
@ -5,4 +5,4 @@ FactoryGirl.define do
|
|||
conference
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
|
|
|
|||
|
|
@ -6,4 +6,4 @@ FactoryGirl.define do
|
|||
conference
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
|
|
|
|||
|
|
@ -5,4 +5,4 @@ FactoryGirl.define do
|
|||
conference
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
|
|
|
|||
|
|
@ -9,4 +9,4 @@ FactoryGirl.define do
|
|||
end
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
|
|
|
|||
|
|
@ -5,4 +5,4 @@ module Sidebar
|
|||
render
|
||||
expect(view).to render_template('admin/conference/_sidebar')
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
|||
|
|
@ -9,4 +9,4 @@ describe 'admin/rooms/index' do
|
|||
expect(rendered).to include('4')
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue