aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/models')
-rw-r--r--app/models/answer.rb14
-rw-r--r--app/models/comment.rb14
-rw-r--r--app/models/email_answer.rb14
-rw-r--r--app/models/guest.rb14
-rw-r--r--app/models/multiple_choice_answer.rb14
-rw-r--r--app/models/option.rb14
-rw-r--r--app/models/project_acceptance.rb14
-rw-r--r--app/models/question.rb14
-rw-r--r--app/models/question_category.rb14
-rw-r--r--app/models/question_content_email.rb14
-rw-r--r--app/models/question_content_multiple_choice.rb14
-rw-r--r--app/models/question_content_text.rb14
-rw-r--r--app/models/question_group.rb14
-rw-r--r--app/models/user.rb14
-rw-r--r--app/models/user_category.rb14
-rw-r--r--app/models/user_mailer.rb14
-rw-r--r--app/models/user_question_group.rb14
17 files changed, 238 insertions, 0 deletions
diff --git a/app/models/answer.rb b/app/models/answer.rb
index 6e31c4d..f013547 100644
--- a/app/models/answer.rb
+++ b/app/models/answer.rb
@@ -1,3 +1,17 @@
+# Gentoo Recruiters Web App - to help Gentoo recruiters do their job better
+# Copyright (C) 2010 Joachim Filip Bartosik
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as
+# published by the Free Software Foundation, version 3 of the License
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Affero General Public License for more details.
+#
+# You should have received a copy of the GNU Affero General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
require 'permissions/owned_model.rb'
require 'permissions/set.rb'
# Model storing answers for questions with text content.
diff --git a/app/models/comment.rb b/app/models/comment.rb
index e633605..83d5f9f 100644
--- a/app/models/comment.rb
+++ b/app/models/comment.rb
@@ -1,3 +1,17 @@
+# Gentoo Recruiters Web App - to help Gentoo recruiters do their job better
+# Copyright (C) 2010 Joachim Filip Bartosik
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as
+# published by the Free Software Foundation, version 3 of the License
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Affero General Public License for more details.
+#
+# You should have received a copy of the GNU Affero General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Model storing comments mentors made for answers.
class Comment < ActiveRecord::Base
diff --git a/app/models/email_answer.rb b/app/models/email_answer.rb
index 16c7b9c..f1bd4a5 100644
--- a/app/models/email_answer.rb
+++ b/app/models/email_answer.rb
@@ -1,3 +1,17 @@
+# Gentoo Recruiters Web App - to help Gentoo recruiters do their job better
+# Copyright (C) 2010 Joachim Filip Bartosik
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as
+# published by the Free Software Foundation, version 3 of the License
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Affero General Public License for more details.
+#
+# You should have received a copy of the GNU Affero General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Model storing answers for questions with email content.
# No user is allowed to do anything except viewing.
class EmailAnswer < Answer
diff --git a/app/models/guest.rb b/app/models/guest.rb
index 2c01803..31d4870 100644
--- a/app/models/guest.rb
+++ b/app/models/guest.rb
@@ -1,3 +1,17 @@
+# Gentoo Recruiters Web App - to help Gentoo recruiters do their job better
+# Copyright (C) 2010 Joachim Filip Bartosik
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as
+# published by the Free Software Foundation, version 3 of the License
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Affero General Public License for more details.
+#
+# You should have received a copy of the GNU Affero General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Model representing guest users.
# It has methods that allow us to treat Guests as regular users.
class Guest < Hobo::Guest
diff --git a/app/models/multiple_choice_answer.rb b/app/models/multiple_choice_answer.rb
index 6433f6d..a507878 100644
--- a/app/models/multiple_choice_answer.rb
+++ b/app/models/multiple_choice_answer.rb
@@ -1,3 +1,17 @@
+# Gentoo Recruiters Web App - to help Gentoo recruiters do their job better
+# Copyright (C) 2010 Joachim Filip Bartosik
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as
+# published by the Free Software Foundation, version 3 of the License
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Affero General Public License for more details.
+#
+# You should have received a copy of the GNU Affero General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Model storing answers for questions with multiple choice content.
class MultipleChoiceAnswer < Answer
# Returns RichTypes::CheckList describing given answer
diff --git a/app/models/option.rb b/app/models/option.rb
index 6a9801d..f6ffa97 100644
--- a/app/models/option.rb
+++ b/app/models/option.rb
@@ -1,3 +1,17 @@
+# Gentoo Recruiters Web App - to help Gentoo recruiters do their job better
+# Copyright (C) 2010 Joachim Filip Bartosik
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as
+# published by the Free Software Foundation, version 3 of the License
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Affero General Public License for more details.
+#
+# You should have received a copy of the GNU Affero General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Hobo model storing options for multiple choice questions.
# Inherits permissions from option_owner.
class Option < ActiveRecord::Base
diff --git a/app/models/project_acceptance.rb b/app/models/project_acceptance.rb
index bf170f3..b3e7077 100644
--- a/app/models/project_acceptance.rb
+++ b/app/models/project_acceptance.rb
@@ -1,3 +1,17 @@
+# Gentoo Recruiters Web App - to help Gentoo recruiters do their job better
+# Copyright (C) 2010 Joachim Filip Bartosik
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as
+# published by the Free Software Foundation, version 3 of the License
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Affero General Public License for more details.
+#
+# You should have received a copy of the GNU Affero General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
require 'permissions/set.rb'
class ProjectAcceptance < ActiveRecord::Base
diff --git a/app/models/question.rb b/app/models/question.rb
index be00a84..084f826 100644
--- a/app/models/question.rb
+++ b/app/models/question.rb
@@ -1,3 +1,17 @@
+# Gentoo Recruiters Web App - to help Gentoo recruiters do their job better
+# Copyright (C) 2010 Joachim Filip Bartosik
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as
+# published by the Free Software Foundation, version 3 of the License
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Affero General Public License for more details.
+#
+# You should have received a copy of the GNU Affero General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
# TODO: probably broken scope unanswered(user)
# Model storing answers for questions with text content.
# Hooks:
diff --git a/app/models/question_category.rb b/app/models/question_category.rb
index 7c4b78f..e67810c 100644
--- a/app/models/question_category.rb
+++ b/app/models/question_category.rb
@@ -1,3 +1,17 @@
+# Gentoo Recruiters Web App - to help Gentoo recruiters do their job better
+# Copyright (C) 2010 Joachim Filip Bartosik
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as
+# published by the Free Software Foundation, version 3 of the License
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Affero General Public License for more details.
+#
+# You should have received a copy of the GNU Affero General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Questions are arranged in categories. Recruit should answer question in some
# categories.
class QuestionCategory < ActiveRecord::Base
diff --git a/app/models/question_content_email.rb b/app/models/question_content_email.rb
index f10fcc1..7e38d92 100644
--- a/app/models/question_content_email.rb
+++ b/app/models/question_content_email.rb
@@ -1,3 +1,17 @@
+# Gentoo Recruiters Web App - to help Gentoo recruiters do their job better
+# Copyright (C) 2010 Joachim Filip Bartosik
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as
+# published by the Free Software Foundation, version 3 of the License
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Affero General Public License for more details.
+#
+# You should have received a copy of the GNU Affero General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
require 'permissions/inherit.rb'
# TODO: all QuestionContents in one table(?)
# TODO: use standard serialization, not custom one (?)
diff --git a/app/models/question_content_multiple_choice.rb b/app/models/question_content_multiple_choice.rb
index cd1d277..3fea434 100644
--- a/app/models/question_content_multiple_choice.rb
+++ b/app/models/question_content_multiple_choice.rb
@@ -1,3 +1,17 @@
+# Gentoo Recruiters Web App - to help Gentoo recruiters do their job better
+# Copyright (C) 2010 Joachim Filip Bartosik
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as
+# published by the Free Software Foundation, version 3 of the License
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Affero General Public License for more details.
+#
+# You should have received a copy of the GNU Affero General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
require 'permissions/inherit.rb'
# Multiple choice content for question.
class QuestionContentMultipleChoice < ActiveRecord::Base
diff --git a/app/models/question_content_text.rb b/app/models/question_content_text.rb
index 37540e2..6052ad4 100644
--- a/app/models/question_content_text.rb
+++ b/app/models/question_content_text.rb
@@ -1,3 +1,17 @@
+# Gentoo Recruiters Web App - to help Gentoo recruiters do their job better
+# Copyright (C) 2010 Joachim Filip Bartosik
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as
+# published by the Free Software Foundation, version 3 of the License
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Affero General Public License for more details.
+#
+# You should have received a copy of the GNU Affero General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
require 'permissions/inherit.rb'
class QuestionContentText < ActiveRecord::Base
diff --git a/app/models/question_group.rb b/app/models/question_group.rb
index 5c2ed3b..81d738b 100644
--- a/app/models/question_group.rb
+++ b/app/models/question_group.rb
@@ -1,3 +1,17 @@
+# Gentoo Recruiters Web App - to help Gentoo recruiters do their job better
+# Copyright (C) 2010 Joachim Filip Bartosik
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as
+# published by the Free Software Foundation, version 3 of the License
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Affero General Public License for more details.
+#
+# You should have received a copy of the GNU Affero General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Users should answer only one question from each group. The question recruit
# should answer is randomly chosen from group by application. Unless user is
# recruit [s]he can't view grouped questions [s]he is not supposed to answer.
diff --git a/app/models/user.rb b/app/models/user.rb
index 828840f..071c708 100644
--- a/app/models/user.rb
+++ b/app/models/user.rb
@@ -1,3 +1,17 @@
+# Gentoo Recruiters Web App - to help Gentoo recruiters do their job better
+# Copyright (C) 2010 Joachim Filip Bartosik
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as
+# published by the Free Software Foundation, version 3 of the License
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Affero General Public License for more details.
+#
+# You should have received a copy of the GNU Affero General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
#TODO: merge before_creation hooks
# Model representing signed up users.
# Hooks:
diff --git a/app/models/user_category.rb b/app/models/user_category.rb
index d641268..3f60283 100644
--- a/app/models/user_category.rb
+++ b/app/models/user_category.rb
@@ -1,3 +1,17 @@
+# Gentoo Recruiters Web App - to help Gentoo recruiters do their job better
+# Copyright (C) 2010 Joachim Filip Bartosik
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as
+# published by the Free Software Foundation, version 3 of the License
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Affero General Public License for more details.
+#
+# You should have received a copy of the GNU Affero General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
require 'permissions/set.rb'
# Associates users with question categories
# Hooks:
diff --git a/app/models/user_mailer.rb b/app/models/user_mailer.rb
index cdd572e..1263e58 100644
--- a/app/models/user_mailer.rb
+++ b/app/models/user_mailer.rb
@@ -1,3 +1,17 @@
+# Gentoo Recruiters Web App - to help Gentoo recruiters do their job better
+# Copyright (C) 2010 Joachim Filip Bartosik
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as
+# published by the Free Software Foundation, version 3 of the License
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Affero General Public License for more details.
+#
+# You should have received a copy of the GNU Affero General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
class UserMailer < ActionMailer::Base
def common(user, subject)
@recipients = user.email_address
diff --git a/app/models/user_question_group.rb b/app/models/user_question_group.rb
index 5c5f537..e3b29f0 100644
--- a/app/models/user_question_group.rb
+++ b/app/models/user_question_group.rb
@@ -1,3 +1,17 @@
+# Gentoo Recruiters Web App - to help Gentoo recruiters do their job better
+# Copyright (C) 2010 Joachim Filip Bartosik
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as
+# published by the Free Software Foundation, version 3 of the License
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Affero General Public License for more details.
+#
+# You should have received a copy of the GNU Affero General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Associates user with grouped question. No user can do anything to it -
# application manages those internally.
class UserQuestionGroup < ActiveRecord::Base