openproject-meeting 3.0.2 → 3.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (76) hide show
  1. checksums.yaml +9 -9
  2. data/CHANGELOG.md +28 -0
  3. data/README.md +3 -3
  4. data/app/assets/stylesheets/meeting/meeting.css.erb +19 -10
  5. data/app/controllers/meeting_agendas_controller.rb +11 -3
  6. data/app/controllers/meeting_contents_controller.rb +21 -7
  7. data/app/controllers/meeting_minutes_controller.rb +11 -3
  8. data/app/controllers/meetings_controller.rb +11 -3
  9. data/app/helpers/meeting_contents_helper.rb +11 -3
  10. data/app/helpers/meetings_helper.rb +17 -3
  11. data/app/mailers/meeting_mailer.rb +11 -3
  12. data/app/models/journal/meeting_content_journal.rb +40 -0
  13. data/app/models/journal/meeting_journal.rb +38 -0
  14. data/app/models/meeting.rb +17 -6
  15. data/app/models/meeting_agenda.rb +11 -66
  16. data/app/models/meeting_content.rb +30 -4
  17. data/app/models/meeting_minutes.rb +11 -67
  18. data/app/models/meeting_participant.rb +11 -3
  19. data/app/views/hooks/meetings/_activity_index_head.html.erb +21 -0
  20. data/app/views/meeting_contents/_form.html.erb +11 -3
  21. data/app/views/meeting_contents/_show.html.erb +11 -3
  22. data/app/views/meeting_contents/diff.html.erb +13 -6
  23. data/app/views/meeting_contents/history.html.erb +11 -3
  24. data/app/views/meeting_contents/show.html.erb +11 -3
  25. data/app/views/meeting_mailer/content_for_review.html.erb +11 -3
  26. data/app/views/meeting_mailer/content_for_review.text.erb +20 -0
  27. data/app/views/meetings/_form.html.erb +11 -3
  28. data/app/views/meetings/edit.html.erb +11 -3
  29. data/app/views/meetings/index.html.erb +11 -3
  30. data/app/views/meetings/new.html.erb +11 -3
  31. data/app/views/meetings/show.html.erb +12 -4
  32. data/app/views/shared/_meeting_header.html.erb +11 -3
  33. data/config/locales/de.yml +22 -0
  34. data/config/locales/en.yml +22 -0
  35. data/config/routes.rb +11 -3
  36. data/db/migrate/20110106210555_create_meetings.rb +11 -3
  37. data/db/migrate/20110106221214_create_meeting_contents.rb +11 -3
  38. data/db/migrate/20110106221946_create_meeting_content_versions.rb +11 -3
  39. data/db/migrate/20110108230721_create_meeting_participants.rb +11 -3
  40. data/db/migrate/20110224180804_add_lock_to_meeting_content.rb +11 -3
  41. data/db/migrate/20110819162852_create_initial_meeting_journals.rb +11 -3
  42. data/db/migrate/20111605171815_merge_meeting_content_versions_with_journals.rb +11 -3
  43. data/db/migrate/20130731151542_remove_meeting_role_id_from_meeting_participants.rb +11 -3
  44. data/db/migrate/20130822113942_create_meeting_journals.rb +39 -0
  45. data/db/migrate/20130924091342_legacy_meeting_journal_data.rb +36 -0
  46. data/db/migrate/20130924093842_legacy_meeting_agenda_journal_data.rb +62 -0
  47. data/db/migrate/20130924114042_legacy_meeting_minutes_journal_data.rb +62 -0
  48. data/doc/{COPYRIGHT.rdoc → COPYRIGHT.md} +1 -1
  49. data/doc/COPYRIGHT_short.md +16 -0
  50. data/lib/open_project/meeting.rb +11 -3
  51. data/lib/open_project/meeting/engine.rb +12 -4
  52. data/lib/open_project/meeting/hooks.rb +12 -4
  53. data/lib/open_project/meeting/patches/project_patch.rb +11 -3
  54. data/lib/open_project/meeting/version.rb +12 -4
  55. data/lib/openproject-meeting.rb +11 -3
  56. data/spec/controllers/meetings_controller_spec.rb +11 -3
  57. data/spec/factories/meeting_agenda_factory.rb +11 -3
  58. data/spec/factories/meeting_content_journal_factory.rb +23 -0
  59. data/spec/factories/meeting_factory.rb +11 -3
  60. data/spec/factories/meeting_journal_factory.rb +31 -0
  61. data/spec/factories/meeting_minutes_factory.rb +11 -3
  62. data/spec/factories/meeting_participant_factory.rb +11 -3
  63. data/spec/mailers/meeting_mailer_spec.rb +11 -3
  64. data/spec/models/meeting_agenda_spec.rb +14 -6
  65. data/spec/models/meeting_content_journal_spec.rb +30 -0
  66. data/spec/models/meeting_minutes_spec.rb +11 -3
  67. data/spec/models/meeting_spec.rb +11 -3
  68. data/spec/models/user_deletion_spec.rb +16 -14
  69. data/spec/spec_helper.rb +11 -3
  70. data/spec/support/plugin_spec_helper.rb +14 -22
  71. metadata +18 -13
  72. data/app/views/hooks/_activity_index_head.html.erb +0 -13
  73. data/spec/factories/meeting_agenda_journal_factory.rb +0 -18
  74. data/spec/factories/meeting_minutes_journal_factory.rb +0 -18
  75. data/spec/models/meeting_agenda_journal_spec.rb +0 -21
  76. data/spec/models/meeting_minutes_journal_spec.rb +0 -21
@@ -0,0 +1,62 @@
1
+ #-- encoding: UTF-8
2
+ #-- copyright
3
+ # OpenProject is a project management system.
4
+ # Copyright (C) 2011-2013 the OpenProject Foundation (OPF)
5
+ #
6
+ # This program is free software; you can redistribute it and/or
7
+ # modify it under the terms of the GNU General Public License version 3.
8
+ #
9
+ # This program is distributed in the hope that it will be useful,
10
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
11
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
+ # GNU General Public License for more details.
13
+ #
14
+ # You should have received a copy of the GNU General Public License
15
+ # along with this program; if not, write to the Free Software
16
+ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17
+ #
18
+ # See doc/COPYRIGHT.md for more details.
19
+ #++
20
+ #
21
+
22
+ require_relative 'migration_utils/legacy_journal_migrator'
23
+
24
+ class LegacyMeetingAgendaJournalData < ActiveRecord::Migration
25
+ class UnsupportedMeetingAgendaJournalCompressionError < ::StandardError
26
+ end
27
+
28
+ def up
29
+ migrator.run
30
+ end
31
+
32
+ def down
33
+ migrator.remove_journals_derived_from_legacy_journals 'meeting_content_journals'
34
+ end
35
+
36
+ def migrator
37
+ @migrator ||= Migration::LegacyJournalMigrator.new "MeetingAgendaJournal", "meeting_content_journals" do
38
+
39
+ self.journable_class = "MeetingContent"
40
+
41
+ def migrate_key_value_pairs!(to_insert, legacy_journal, journal_id)
42
+ if to_insert.has_key?("data")
43
+
44
+ # Why is that checked but than the compression is not used in any way to read the data
45
+ if !to_insert.has_key?("compression")
46
+
47
+ raise UnsupportedMeetingAgendaJournalCompressionError, <<-MESSAGE.split("\n").map(&:strip!).join(" ") + "\n"
48
+ There is a MeetingAgenda journal that contains data in an
49
+ unsupported compression: #{compression}
50
+ MESSAGE
51
+
52
+ end
53
+
54
+ # as the old journals used the format [old_value, new_value] we have to fake it here
55
+ to_insert["text"] = [nil, to_insert.delete("data")]
56
+ end
57
+ end
58
+
59
+ end
60
+
61
+ end
62
+ end
@@ -0,0 +1,62 @@
1
+ #-- encoding: UTF-8
2
+ #-- copyright
3
+ # OpenProject is a project management system.
4
+ # Copyright (C) 2011-2013 the OpenProject Foundation (OPF)
5
+ #
6
+ # This program is free software; you can redistribute it and/or
7
+ # modify it under the terms of the GNU General Public License version 3.
8
+ #
9
+ # This program is distributed in the hope that it will be useful,
10
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
11
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
+ # GNU General Public License for more details.
13
+ #
14
+ # You should have received a copy of the GNU General Public License
15
+ # along with this program; if not, write to the Free Software
16
+ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17
+ #
18
+ # See doc/COPYRIGHT.md for more details.
19
+ #++
20
+ #
21
+
22
+ require_relative 'migration_utils/legacy_journal_migrator'
23
+
24
+ class LegacyMeetingMinutesJournalData < ActiveRecord::Migration
25
+ class UnsupportedMeetingMinutesJournalCompressionError < ::StandardError
26
+ end
27
+
28
+ def up
29
+ migrator.run
30
+ end
31
+
32
+ def down
33
+ migrator.remove_journals_derived_from_legacy_journals 'meeting_content_journals'
34
+ end
35
+
36
+ def migrator
37
+ @migrator ||= Migration::LegacyJournalMigrator.new "MeetingMinutesJournal", "meeting_content_journals" do
38
+
39
+ self.journable_class = "MeetingContent"
40
+
41
+ def migrate_key_value_pairs!(to_insert, legacy_journal, journal_id)
42
+ if to_insert.has_key?("data")
43
+
44
+ # Why is that checked but than the compression is not used in any way to read the data
45
+ if !to_insert.has_key?("compression")
46
+
47
+ raise UnsupportedMeetingMinutesJournalCompressionError, <<-MESSAGE.split("\n").map(&:strip!).join(" ") + "\n"
48
+ There is a MeetingMinutes journal that contains data in an
49
+ unsupported compression: #{compression}
50
+ MESSAGE
51
+
52
+ end
53
+
54
+ # as the old journals used the format [old_value, new_value] we have to fake it here
55
+ to_insert["text"] = [nil, to_insert.delete("data")]
56
+ end
57
+ end
58
+
59
+ end
60
+
61
+ end
62
+ end
@@ -1,6 +1,6 @@
1
1
  OpenProject is a project management system.
2
2
 
3
- Copyright (C)2011-2013 the OpenProject Team
3
+ Copyright (C) 2011-2013 the OpenProject Foundation (OPF)
4
4
 
5
5
  This program is free software; you can redistribute it and/or
6
6
  modify it under the terms of the GNU General Public License
@@ -0,0 +1,16 @@
1
+ OpenProject is a project management system.
2
+ Copyright (C) 2011-2013 the OpenProject Foundation (OPF)
3
+
4
+ This program is free software; you can redistribute it and/or
5
+ modify it under the terms of the GNU General Public License version 3.
6
+
7
+ This program is distributed in the hope that it will be useful,
8
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
9
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10
+ GNU General Public License for more details.
11
+
12
+ You should have received a copy of the GNU General Public License
13
+ along with this program; if not, write to the Free Software
14
+ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15
+
16
+ See doc/COPYRIGHT.md for more details.
@@ -1,12 +1,20 @@
1
1
  #-- copyright
2
2
  # OpenProject is a project management system.
3
- #
4
- # Copyright (C) 2011-2013 the OpenProject Team
3
+ # Copyright (C) 2011-2013 the OpenProject Foundation (OPF)
5
4
  #
6
5
  # This program is free software; you can redistribute it and/or
7
6
  # modify it under the terms of the GNU General Public License version 3.
8
7
  #
9
- # See doc/COPYRIGHT.rdoc for more details.
8
+ # This program is distributed in the hope that it will be useful,
9
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
10
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
+ # GNU General Public License for more details.
12
+ #
13
+ # You should have received a copy of the GNU General Public License
14
+ # along with this program; if not, write to the Free Software
15
+ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16
+ #
17
+ # See doc/COPYRIGHT.md for more details.
10
18
  #++
11
19
 
12
20
  module OpenProject
@@ -1,12 +1,20 @@
1
1
  #-- copyright
2
2
  # OpenProject is a project management system.
3
- #
4
- # Copyright (C) 2011-2013 the OpenProject Team
3
+ # Copyright (C) 2011-2013 the OpenProject Foundation (OPF)
5
4
  #
6
5
  # This program is free software; you can redistribute it and/or
7
6
  # modify it under the terms of the GNU General Public License version 3.
8
7
  #
9
- # See doc/COPYRIGHT.rdoc for more details.
8
+ # This program is distributed in the hope that it will be useful,
9
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
10
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
+ # GNU General Public License for more details.
12
+ #
13
+ # You should have received a copy of the GNU General Public License
14
+ # along with this program; if not, write to the Free Software
15
+ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16
+ #
17
+ # See doc/COPYRIGHT.md for more details.
10
18
  #++
11
19
  module OpenProject::Meeting
12
20
  class Engine < ::Rails::Engine
@@ -25,7 +33,7 @@ module OpenProject::Meeting
25
33
  version spec.version
26
34
  url spec.homepage
27
35
 
28
- requires_openproject ">= 3.0.0pre9", "<= 3.0.0pre12"
36
+ requires_openproject ">= 3.0.0pre18"
29
37
 
30
38
  project_module :meetings do
31
39
  permission :create_meetings, {:meetings => [:new, :create, :copy]}, :require => :member
@@ -1,17 +1,25 @@
1
1
  #-- copyright
2
2
  # OpenProject is a project management system.
3
- #
4
- # Copyright (C) 2011-2013 the OpenProject Team
3
+ # Copyright (C) 2011-2013 the OpenProject Foundation (OPF)
5
4
  #
6
5
  # This program is free software; you can redistribute it and/or
7
6
  # modify it under the terms of the GNU General Public License version 3.
8
7
  #
9
- # See doc/COPYRIGHT.rdoc for more details.
8
+ # This program is distributed in the hope that it will be useful,
9
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
10
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
+ # GNU General Public License for more details.
12
+ #
13
+ # You should have received a copy of the GNU General Public License
14
+ # along with this program; if not, write to the Free Software
15
+ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16
+ #
17
+ # See doc/COPYRIGHT.md for more details.
10
18
  #++
11
19
 
12
20
  module OpenProject::Meeting
13
21
  class Hooks < Redmine::Hook::ViewListener
14
22
  render_on :activity_index_head,
15
- :partial => 'hooks/activity_index_head'
23
+ :partial => 'hooks/meetings/activity_index_head'
16
24
  end
17
25
  end
@@ -1,12 +1,20 @@
1
1
  #-- copyright
2
2
  # OpenProject is a project management system.
3
- #
4
- # Copyright (C) 2011-2013 the OpenProject Team
3
+ # Copyright (C) 2011-2013 the OpenProject Foundation (OPF)
5
4
  #
6
5
  # This program is free software; you can redistribute it and/or
7
6
  # modify it under the terms of the GNU General Public License version 3.
8
7
  #
9
- # See doc/COPYRIGHT.rdoc for more details.
8
+ # This program is distributed in the hope that it will be useful,
9
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
10
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
+ # GNU General Public License for more details.
12
+ #
13
+ # You should have received a copy of the GNU General Public License
14
+ # along with this program; if not, write to the Free Software
15
+ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16
+ #
17
+ # See doc/COPYRIGHT.md for more details.
10
18
  #++
11
19
 
12
20
  module OpenProject::Meeting
@@ -1,16 +1,24 @@
1
1
  #-- copyright
2
2
  # OpenProject is a project management system.
3
- #
4
- # Copyright (C) 2011-2013 the OpenProject Team
3
+ # Copyright (C) 2011-2013 the OpenProject Foundation (OPF)
5
4
  #
6
5
  # This program is free software; you can redistribute it and/or
7
6
  # modify it under the terms of the GNU General Public License version 3.
8
7
  #
9
- # See doc/COPYRIGHT.rdoc for more details.
8
+ # This program is distributed in the hope that it will be useful,
9
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
10
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
+ # GNU General Public License for more details.
12
+ #
13
+ # You should have received a copy of the GNU General Public License
14
+ # along with this program; if not, write to the Free Software
15
+ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16
+ #
17
+ # See doc/COPYRIGHT.md for more details.
10
18
  #++
11
19
 
12
20
  module OpenProject
13
21
  module Meeting
14
- VERSION = "3.0.2"
22
+ VERSION = "3.0.3"
15
23
  end
16
24
  end
@@ -1,12 +1,20 @@
1
1
  #-- copyright
2
2
  # OpenProject is a project management system.
3
- #
4
- # Copyright (C) 2011-2013 the OpenProject Team
3
+ # Copyright (C) 2011-2013 the OpenProject Foundation (OPF)
5
4
  #
6
5
  # This program is free software; you can redistribute it and/or
7
6
  # modify it under the terms of the GNU General Public License version 3.
8
7
  #
9
- # See doc/COPYRIGHT.rdoc for more details.
8
+ # This program is distributed in the hope that it will be useful,
9
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
10
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
+ # GNU General Public License for more details.
12
+ #
13
+ # You should have received a copy of the GNU General Public License
14
+ # along with this program; if not, write to the Free Software
15
+ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16
+ #
17
+ # See doc/COPYRIGHT.md for more details.
10
18
  #++
11
19
 
12
20
  require 'open_project/meeting'
@@ -1,12 +1,20 @@
1
1
  #-- copyright
2
2
  # OpenProject is a project management system.
3
- #
4
- # Copyright (C) 2011-2013 the OpenProject Team
3
+ # Copyright (C) 2011-2013 the OpenProject Foundation (OPF)
5
4
  #
6
5
  # This program is free software; you can redistribute it and/or
7
6
  # modify it under the terms of the GNU General Public License version 3.
8
7
  #
9
- # See doc/COPYRIGHT.rdoc for more details.
8
+ # This program is distributed in the hope that it will be useful,
9
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
10
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
+ # GNU General Public License for more details.
12
+ #
13
+ # You should have received a copy of the GNU General Public License
14
+ # along with this program; if not, write to the Free Software
15
+ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16
+ #
17
+ # See doc/COPYRIGHT.md for more details.
10
18
  #++
11
19
 
12
20
  require File.dirname(__FILE__) + '/../spec_helper'
@@ -1,12 +1,20 @@
1
1
  #-- copyright
2
2
  # OpenProject is a project management system.
3
- #
4
- # Copyright (C) 2011-2013 the OpenProject Team
3
+ # Copyright (C) 2011-2013 the OpenProject Foundation (OPF)
5
4
  #
6
5
  # This program is free software; you can redistribute it and/or
7
6
  # modify it under the terms of the GNU General Public License version 3.
8
7
  #
9
- # See doc/COPYRIGHT.rdoc for more details.
8
+ # This program is distributed in the hope that it will be useful,
9
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
10
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
+ # GNU General Public License for more details.
12
+ #
13
+ # You should have received a copy of the GNU General Public License
14
+ # along with this program; if not, write to the Free Software
15
+ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16
+ #
17
+ # See doc/COPYRIGHT.md for more details.
10
18
  #++
11
19
 
12
20
  FactoryGirl.define do
@@ -0,0 +1,23 @@
1
+ #-- copyright
2
+ # OpenProject is a project management system.
3
+ # Copyright (C) 2011-2013 the OpenProject Foundation (OPF)
4
+ #
5
+ # This program is free software; you can redistribute it and/or
6
+ # modify it under the terms of the GNU General Public License version 3.
7
+ #
8
+ # This program is distributed in the hope that it will be useful,
9
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
10
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
+ # GNU General Public License for more details.
12
+ #
13
+ # You should have received a copy of the GNU General Public License
14
+ # along with this program; if not, write to the Free Software
15
+ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16
+ #
17
+ # See doc/COPYRIGHT.md for more details.
18
+ #++
19
+
20
+ FactoryGirl.define do
21
+ factory :journal_meeting_content_journal, :class => Journal::MeetingContentJournal do
22
+ end
23
+ end
@@ -1,12 +1,20 @@
1
1
  #-- copyright
2
2
  # OpenProject is a project management system.
3
- #
4
- # Copyright (C) 2011-2013 the OpenProject Team
3
+ # Copyright (C) 2011-2013 the OpenProject Foundation (OPF)
5
4
  #
6
5
  # This program is free software; you can redistribute it and/or
7
6
  # modify it under the terms of the GNU General Public License version 3.
8
7
  #
9
- # See doc/COPYRIGHT.rdoc for more details.
8
+ # This program is distributed in the hope that it will be useful,
9
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
10
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
+ # GNU General Public License for more details.
12
+ #
13
+ # You should have received a copy of the GNU General Public License
14
+ # along with this program; if not, write to the Free Software
15
+ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16
+ #
17
+ # See doc/COPYRIGHT.md for more details.
10
18
  #++
11
19
 
12
20
  FactoryGirl.define do
@@ -0,0 +1,31 @@
1
+ #-- copyright
2
+ # OpenProject is a project management system.
3
+ # Copyright (C) 2011-2013 the OpenProject Foundation (OPF)
4
+ #
5
+ # This program is free software; you can redistribute it and/or
6
+ # modify it under the terms of the GNU General Public License version 3.
7
+ #
8
+ # This program is distributed in the hope that it will be useful,
9
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
10
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
+ # GNU General Public License for more details.
12
+ #
13
+ # You should have received a copy of the GNU General Public License
14
+ # along with this program; if not, write to the Free Software
15
+ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16
+ #
17
+ # See doc/COPYRIGHT.md for more details.
18
+ #++
19
+
20
+ FactoryGirl.define do
21
+ factory :meeting_journal do
22
+ created_at Time.now
23
+ sequence(:version) {|n| n}
24
+
25
+ factory :meeting_content_journal, class: Journal do
26
+ journable_type "MeetingContent"
27
+ activity_type "meetings"
28
+ data FactoryGirl.build(:journal_meeting_content_journal)
29
+ end
30
+ end
31
+ end