Skip to content

Commit

Permalink
Apply new legal comments to models
Browse files Browse the repository at this point in the history
  • Loading branch information
Marc Altmann committed Oct 12, 2015
1 parent 8ecab1b commit da29d8f
Show file tree
Hide file tree
Showing 59 changed files with 234 additions and 667 deletions.
Empty file removed app/models/.gitkeep
Empty file.
4 changes: 4 additions & 0 deletions app/models/address.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright (c) 2012-2015, Fairmondo eG. This file is
# licensed under the GNU Affero General Public License version 3 or later.
# See the COPYRIGHT file for details.

class Address < ActiveRecord::Base
belongs_to :user
has_one :connected_user, class_name: 'User', foreign_key: :standard_address_id, inverse_of: :standard_address
Expand Down
25 changes: 4 additions & 21 deletions app/models/article.rb
Original file line number Diff line number Diff line change
@@ -1,24 +1,7 @@
#
#
# == License:
# Fairmondo - Fairmondo is an open-source online marketplace.
# Copyright (C) 2013 Fairmondo eG
#
# This file is part of Fairmondo.
#
# Fairmondo 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, either version 3 of the
# License, or (at your option) any later version.
#
# Fairmondo 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 Fairmondo. If not, see <http://www.gnu.org/licenses/>.
#
# Copyright (c) 2012-2015, Fairmondo eG. This file is
# licensed under the GNU Affero General Public License version 3 or later.
# See the COPYRIGHT file for details.

class Article < ActiveRecord::Base
extend Enumerize
extend FriendlyId
Expand Down
4 changes: 4 additions & 0 deletions app/models/article/active_record_overwrites.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright (c) 2012-2015, Fairmondo eG. This file is
# licensed under the GNU Affero General Public License version 3 or later.
# See the COPYRIGHT file for details.

module Article::ActiveRecordOverwrites
extend ActiveSupport::Concern

Expand Down
26 changes: 4 additions & 22 deletions app/models/article/associations.rb
Original file line number Diff line number Diff line change
@@ -1,25 +1,7 @@
# This module compiles all checks (usually ending with aquestion mark) called
# on an article.
#
# == License:
# Fairmondo - Fairmondo is an open-source online marketplace.
# Copyright (C) 2013 Fairmondo eG
#
# This file is part of Fairmondo.
#
# Fairmondo 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, either version 3 of the
# License, or (at your option) any later version.
#
# Fairmondo 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 Fairmondo. If not, see <http://www.gnu.org/licenses/>.
#
# Copyright (c) 2012-2015, Fairmondo eG. This file is
# licensed under the GNU Affero General Public License version 3 or later.
# See the COPYRIGHT file for details.

module Article::Associations
extend ActiveSupport::Concern

Expand Down
25 changes: 5 additions & 20 deletions app/models/article/checks.rb
Original file line number Diff line number Diff line change
@@ -1,25 +1,10 @@
# Copyright (c) 2012-2015, Fairmondo eG. This file is
# licensed under the GNU Affero General Public License version 3 or later.
# See the COPYRIGHT file for details.

# This module compiles all checks (usually ending with aquestion mark) called on
# an article.
#
# == License:
# Fairmondo - Fairmondo is an open-source online marketplace.
# Copyright (C) 2013 Fairmondo eG
#
# This file is part of Fairmondo.
#
# Fairmondo 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, either version 3 of the
# License, or (at your option) any later version.
#
# Fairmondo 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 Fairmondo. If not, see <http://www.gnu.org/licenses/>.
#

module Article::Checks
extend ActiveSupport::Concern

Expand Down
25 changes: 4 additions & 21 deletions app/models/article/commendation.rb
Original file line number Diff line number Diff line change
@@ -1,24 +1,7 @@
#
#
# == License:
# Fairmondo - Fairmondo is an open-source online marketplace.
# Copyright (C) 2013 Fairmondo eG
#
# This file is part of Fairmondo.
#
# Fairmondo 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, either version 3 of the
# License, or (at your option) any later version.
#
# Fairmondo 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 Fairmondo. If not, see <http://www.gnu.org/licenses/>.
#
# Copyright (c) 2012-2015, Fairmondo eG. This file is
# licensed under the GNU Affero General Public License version 3 or later.
# See the COPYRIGHT file for details.

module Article::Commendation
extend ActiveSupport::Concern

Expand Down
26 changes: 4 additions & 22 deletions app/models/article/delegates.rb
Original file line number Diff line number Diff line change
@@ -1,25 +1,7 @@
# This module compiles all checks (usually ending with aquestion mark) called
# on an article.
#
# == License:
# Fairmondo - Fairmondo is an open-source online marketplace.
# Copyright (C) 2013 Fairmondo eG
#
# This file is part of Fairmondo.
#
# Fairmondo 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, either version 3 of the
# License, or (at your option) any later version.
#
# Fairmondo 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 Fairmondo. If not, see <http://www.gnu.org/licenses/>.
#
# Copyright (c) 2012-2015, Fairmondo eG. This file is
# licensed under the GNU Affero General Public License version 3 or later.
# See the COPYRIGHT file for details.

module Article::Delegates
extend ActiveSupport::Concern

Expand Down
25 changes: 4 additions & 21 deletions app/models/article/extended_attributes.rb
Original file line number Diff line number Diff line change
@@ -1,24 +1,7 @@
#
#
# == License:
# Fairmondo - Fairmondo is an open-source online marketplace.
# Copyright (C) 2013 Fairmondo eG
#
# This file is part of Fairmondo.
#
# Fairmondo 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, either version 3 of the
# License, or (at your option) any later version.
#
# Fairmondo 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 Fairmondo. If not, see <http://www.gnu.org/licenses/>.
#
# Copyright (c) 2012-2015, Fairmondo eG. This file is
# licensed under the GNU Affero General Public License version 3 or later.
# See the COPYRIGHT file for details.

module Article::ExtendedAttributes
extend ActiveSupport::Concern

Expand Down
25 changes: 4 additions & 21 deletions app/models/article/fees_and_donations.rb
Original file line number Diff line number Diff line change
@@ -1,24 +1,7 @@
#
#
# == License:
# Fairmondo - Fairmondo is an open-source online marketplace.
# Copyright (C) 2013 Fairmondo eG
#
# This file is part of Fairmondo.
#
# Fairmondo 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, either version 3 of the
# License, or (at your option) any later version.
#
# Fairmondo 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 Fairmondo. If not, see <http://www.gnu.org/licenses/>.
#
# Copyright (c) 2012-2015, Fairmondo eG. This file is
# licensed under the GNU Affero General Public License version 3 or later.
# See the COPYRIGHT file for details.

module Article::FeesAndDonations
extend ActiveSupport::Concern

Expand Down
25 changes: 4 additions & 21 deletions app/models/article/images.rb
Original file line number Diff line number Diff line change
@@ -1,24 +1,7 @@
#
#
# == License:
# Fairmondo - Fairmondo is an open-source online marketplace.
# Copyright (C) 2013 Fairmondo eG
#
# This file is part of Fairmondo.
#
# Fairmondo 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, either version 3 of the
# License, or (at your option) any later version.
#
# Fairmondo 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 Fairmondo. If not, see <http://www.gnu.org/licenses/>.
#
# Copyright (c) 2012-2015, Fairmondo eG. This file is
# licensed under the GNU Affero General Public License version 3 or later.
# See the COPYRIGHT file for details.

module Article::Images
extend ActiveSupport::Concern

Expand Down
4 changes: 4 additions & 0 deletions app/models/article/scopes.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright (c) 2012-2015, Fairmondo eG. This file is
# licensed under the GNU Affero General Public License version 3 or later.
# See the COPYRIGHT file for details.

module Article::Scopes
extend ActiveSupport::Concern

Expand Down
25 changes: 4 additions & 21 deletions app/models/article/state.rb
Original file line number Diff line number Diff line change
@@ -1,24 +1,7 @@
#
#
# == License:
# Fairmondo - Fairmondo is an open-source online marketplace.
# Copyright (C) 2013 Fairmondo eG
#
# This file is part of Fairmondo.
#
# Fairmondo 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, either version 3 of the
# License, or (at your option) any later version.
#
# Fairmondo 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 Fairmondo. If not, see <http://www.gnu.org/licenses/>.
#
# Copyright (c) 2012-2015, Fairmondo eG. This file is
# licensed under the GNU Affero General Public License version 3 or later.
# See the COPYRIGHT file for details.

module Article::State
extend ActiveSupport::Concern

Expand Down
4 changes: 4 additions & 0 deletions app/models/article/validations.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright (c) 2012-2015, Fairmondo eG. This file is
# licensed under the GNU Affero General Public License version 3 or later.
# See the COPYRIGHT file for details.

module Article::Validations
extend ActiveSupport::Concern

Expand Down
25 changes: 5 additions & 20 deletions app/models/business_transaction.rb
Original file line number Diff line number Diff line change
@@ -1,24 +1,9 @@
# Copyright (c) 2012-2015, Fairmondo eG. This file is
# licensed under the GNU Affero General Public License version 3 or later.
# See the COPYRIGHT file for details.

# A transaction handles the purchase process of an article.
#
# == License:
# Fairmondo - Fairmondo is an open-source online marketplace.
# Copyright (C) 2013 Fairmondo eG
#
# This file is part of Fairmondo.
#
# Fairmondo 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, either version 3 of the
# License, or (at your option) any later version.
#
# Fairmondo 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 Fairmondo. If not, see <http://www.gnu.org/licenses/>.
#

class BusinessTransaction < ActiveRecord::Base
extend Enumerize
extend Sanitization
Expand Down
4 changes: 4 additions & 0 deletions app/models/business_transaction/discountable.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright (c) 2012-2015, Fairmondo eG. This file is
# licensed under the GNU Affero General Public License version 3 or later.
# See the COPYRIGHT file for details.

module BusinessTransaction::Discountable
extend ActiveSupport::Concern

Expand Down
4 changes: 4 additions & 0 deletions app/models/business_transaction/refundable.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright (c) 2012-2015, Fairmondo eG. This file is
# licensed under the GNU Affero General Public License version 3 or later.
# See the COPYRIGHT file for details.

module BusinessTransaction::Refundable
extend ActiveSupport::Concern

Expand Down
4 changes: 4 additions & 0 deletions app/models/business_transaction/scopes.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright (c) 2012-2015, Fairmondo eG. This file is
# licensed under the GNU Affero General Public License version 3 or later.
# See the COPYRIGHT file for details.

module BusinessTransaction::Scopes
extend ActiveSupport::Concern

Expand Down
4 changes: 4 additions & 0 deletions app/models/cart.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright (c) 2012-2015, Fairmondo eG. This file is
# licensed under the GNU Affero General Public License version 3 or later.
# See the COPYRIGHT file for details.

class Cart < ActiveRecord::Base
attr_accessor :cookie_content # temp storage for pundit validation

Expand Down
25 changes: 4 additions & 21 deletions app/models/category.rb
Original file line number Diff line number Diff line change
@@ -1,24 +1,7 @@
#
#
# == License:
# Fairmondo - Fairmondo is an open-source online marketplace.
# Copyright (C) 2013 Fairmondo eG
#
# This file is part of Fairmondo.
#
# Fairmondo 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, either version 3 of the
# License, or (at your option) any later version.
#
# Fairmondo 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 Fairmondo. If not, see <http://www.gnu.org/licenses/>.
#
# Copyright (c) 2012-2015, Fairmondo eG. This file is
# licensed under the GNU Affero General Public License version 3 or later.
# See the COPYRIGHT file for details.

class Category < ActiveRecord::Base
extend FriendlyId
friendly_id :slug_candidates, use: [:slugged, :finders]
Expand Down
Loading

0 comments on commit da29d8f

Please sign in to comment.