muck-activities 0.1.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (84) hide show
  1. data/MIT-LICENSE +20 -0
  2. data/README.rdoc +69 -0
  3. data/Rakefile +78 -0
  4. data/VERSION +1 -0
  5. data/app/controllers/muck/activities_controller.rb +152 -0
  6. data/app/helpers/muck_activity_helper.rb +67 -0
  7. data/app/models/activity.rb +62 -0
  8. data/app/models/activity_feed.rb +16 -0
  9. data/app/views/activities/_activity_feed.html.erb +18 -0
  10. data/app/views/activities/_cached_activities.html.erb +8 -0
  11. data/app/views/activities/_comment.html.erb +6 -0
  12. data/app/views/activities/_comments.html.erb +7 -0
  13. data/app/views/activities/_current_status.html.erb +14 -0
  14. data/app/views/activities/_current_status_wrapper.html.erb +4 -0
  15. data/app/views/activities/_delete.html.erb +11 -0
  16. data/app/views/activities/_status_update.html.erb +35 -0
  17. data/app/views/activities/_template_filter.html.erb +6 -0
  18. data/app/views/activity_templates/_status_update.html.erb +12 -0
  19. data/config/muck_activities_routes.rb +3 -0
  20. data/db/migrate/20090402033319_add_muck_activities.rb +36 -0
  21. data/install.rb +1 -0
  22. data/lib/muck_activities/initialize_routes.rb +8 -0
  23. data/lib/muck_activities/tasks.rb +28 -0
  24. data/lib/muck_activities.rb +76 -0
  25. data/locales/ar.yml +24 -0
  26. data/locales/bg.yml +24 -0
  27. data/locales/ca.yml +24 -0
  28. data/locales/cs.yml +24 -0
  29. data/locales/da.yml +24 -0
  30. data/locales/de.yml +24 -0
  31. data/locales/el.yml +24 -0
  32. data/locales/en.yml +25 -0
  33. data/locales/es.yml +24 -0
  34. data/locales/fr.yml +24 -0
  35. data/locales/it.yml +24 -0
  36. data/locales/iw.yml +24 -0
  37. data/locales/ja.yml +24 -0
  38. data/locales/ko.yml +24 -0
  39. data/locales/lt.yml +24 -0
  40. data/locales/lv.yml +24 -0
  41. data/locales/nl.yml +24 -0
  42. data/locales/no.yml +25 -0
  43. data/locales/pl.yml +24 -0
  44. data/locales/pt.yml +24 -0
  45. data/locales/ro.yml +24 -0
  46. data/locales/ru.yml +24 -0
  47. data/locales/sk.yml +24 -0
  48. data/locales/sl.yml +24 -0
  49. data/locales/sr.yml +24 -0
  50. data/locales/sv.yml +24 -0
  51. data/locales/tl.yml +24 -0
  52. data/locales/uk.yml +24 -0
  53. data/locales/vi.yml +24 -0
  54. data/locales/zh-CN.yml +24 -0
  55. data/locales/zh-TW.yml +24 -0
  56. data/locales/zh.yml +24 -0
  57. data/public/images/loading.gif +0 -0
  58. data/public/javascripts/muck_activities.js +65 -0
  59. data/rails/init.rb +4 -0
  60. data/rdoc/classes/ActionController/Routing/RouteSet.html +148 -0
  61. data/rdoc/classes/ActionController/Routing.html +107 -0
  62. data/rdoc/classes/ActionController.html +107 -0
  63. data/rdoc/classes/MuckActivity/ActMethods.html +189 -0
  64. data/rdoc/classes/MuckActivity/InstanceMethods.html +244 -0
  65. data/rdoc/classes/MuckActivity/Tasks.html +146 -0
  66. data/rdoc/created.rid +1 -0
  67. data/rdoc/files/README_rdoc.html +212 -0
  68. data/rdoc/files/lib/muck_activity/initialize_routes_rb.html +101 -0
  69. data/rdoc/files/lib/muck_activity/tasks_rb.html +110 -0
  70. data/rdoc/files/lib/muck_activity_rb.html +108 -0
  71. data/rdoc/fr_class_index.html +32 -0
  72. data/rdoc/fr_file_index.html +30 -0
  73. data/rdoc/fr_method_index.html +33 -0
  74. data/rdoc/index.html +24 -0
  75. data/rdoc/rdoc-style.css +208 -0
  76. data/tasks/muck_activity_tasks.rake +1 -0
  77. data/test/factories.rb +41 -0
  78. data/test/functional/activities_controller_test.rb +64 -0
  79. data/test/shoulda_macros/controller.rb +43 -0
  80. data/test/test_helper.rb +38 -0
  81. data/test/unit/activity_feed_test.rb +5 -0
  82. data/test/unit/activity_test.rb +57 -0
  83. data/uninstall.rb +1 -0
  84. metadata +169 -0
data/locales/ru.yml ADDED
@@ -0,0 +1,24 @@
1
+ ---
2
+ ru:
3
+ muck:
4
+ activities:
5
+ activity_feed_title: "Последние действия"
6
+ all_activities: "Все мероприятия"
7
+ clear: Ясный
8
+ invite_friends: "Пригласить друзей"
9
+ item_could_not_be_removed: "Пункт не может быть исключена из списка последних мероприятий."
10
+ item_created: "Добавлено деятельности"
11
+ item_removed: "Пункт успешно удален из недавних мероприятий списке."
12
+ joined_status: "{{name}} joined {{application_name}}"
13
+ paging_newer: «Позже
14
+ paging_older: "Пожилые »"
15
+ permission_denied: "К сожалению, вы не можете этого делать."
16
+ post: Разделять
17
+ problem_with_status: "Был проблема изменения статуса"
18
+ status_indicator: быть
19
+ status_update_prompt: "Что вы делаете сейчас?"
20
+ template_or_item_required: "Деятельность требует шаблон или элемент для правильного отображения"
21
+ time_ago: "{{time_in_words}} Назад"
22
+ update_error: "К сожалению ... Был проблема. {{errors}}"
23
+ update_status_message: "обновить свой статус!"
24
+ updating_status_message: "Обновление статуса. Пожалуйста, подождите."
data/locales/sk.yml ADDED
@@ -0,0 +1,24 @@
1
+ ---
2
+ sk:
3
+ muck:
4
+ activities:
5
+ activity_feed_title: "Posledná aktivita"
6
+ all_activities: "Všetky aktivity"
7
+ clear: Jasný
8
+ invite_friends: "Pozvať priateľov"
9
+ item_could_not_be_removed: "Bod nemohol byť odstránený z posledných aktivít zoznamu."
10
+ item_created: "Pridané činnosť"
11
+ item_removed: "Bod bol úspešne odstránený z posledných aktivít zoznamu."
12
+ joined_status: "{{name}} joined {{application_name}}"
13
+ paging_newer: «Novšie
14
+ paging_older: "Staršie »"
15
+ permission_denied: "Ospravedlňujeme sa, ale nemôžete urobiť."
16
+ post: Zdieľať
17
+ problem_with_status: "Došlo k problému pri zmene stavu"
18
+ status_indicator: je
19
+ status_update_prompt: "Čo robíte teraz?"
20
+ template_or_item_required: "Činnosť vyžaduje šablóny alebo položky na displeji správne"
21
+ time_ago: "{{time_in_words}} Ago"
22
+ update_error: "Jejda ... Došlo k problému. {{errors}}"
23
+ update_status_message: "aktualizovať svoj stav!"
24
+ updating_status_message: "Aktualizáciu stavu. Prosím čakajte."
data/locales/sl.yml ADDED
@@ -0,0 +1,24 @@
1
+ ---
2
+ sl:
3
+ muck:
4
+ activities:
5
+ activity_feed_title: "Zadnja aktivnost"
6
+ all_activities: "Vse aktivnosti"
7
+ clear: Jasen
8
+ invite_friends: "Povabi prijatelje"
9
+ item_could_not_be_removed: "Postavka ni mogoče odstraniti s seznama nedavnih dejavnosti."
10
+ item_created: "Added dejavnost"
11
+ item_removed: "Postavka uspešno odstranjen iz nedavnih dejavnosti seznama."
12
+ joined_status: "{{name}} joined {{application_name}}"
13
+ paging_newer: «Novejše
14
+ paging_older: "Starejše »"
15
+ permission_denied: "Žal, ne morete narediti tega."
16
+ post: Deliti
17
+ problem_with_status: "Pojavil se je problem spreminjajočih se vaš status"
18
+ status_indicator: je
19
+ status_update_prompt: "Kaj delaš zdaj?"
20
+ template_or_item_required: "Dejavnost zahteva predlogo ali predmeta na zaslonu pravilno"
21
+ time_ago: "{{time_in_words}} Ago"
22
+ update_error: "Ups ... Prišlo je do težave. {{errors}}"
23
+ update_status_message: "posodobite svoj status!"
24
+ updating_status_message: "Posodabljanje vaše stanje. Prosim počakajte."
data/locales/sr.yml ADDED
@@ -0,0 +1,24 @@
1
+ ---
2
+ sr:
3
+ muck:
4
+ activities:
5
+ activity_feed_title: "Рецент Ацтивиты"
6
+ all_activities: "Све активности"
7
+ clear: Јасно
8
+ invite_friends: "Позови пријатеље"
9
+ item_could_not_be_removed: "Предмет није могао бити скинут са списка недавних активности."
10
+ item_created: "Аддед активност"
11
+ item_removed: "Ставка успешно уклоњен из недавне активности листе."
12
+ joined_status: "{{name}} joined {{application_name}}"
13
+ paging_newer: «Новија
14
+ paging_older: "Старије »"
15
+ permission_denied: "Нажалост, не можете да урадите."
16
+ post: Делити
17
+ problem_with_status: "Дошло је до проблема мења ваш статус"
18
+ status_indicator: је
19
+ status_update_prompt: "Шта то радиш сада?"
20
+ template_or_item_required: "Активност захтева шаблон или ставке приказати исправно"
21
+ time_ago: "{{time_in_words}} Аго"
22
+ update_error: "Упс ... Дошло је до проблема. {{errors}}"
23
+ update_status_message: "ажурирајте свој статус!"
24
+ updating_status_message: "Ажурирање вашег статуса. Молимо сачекајте."
data/locales/sv.yml ADDED
@@ -0,0 +1,24 @@
1
+ ---
2
+ sv:
3
+ muck:
4
+ activities:
5
+ activity_feed_title: "Senaste aktiviteter"
6
+ all_activities: "Alla aktiviteter"
7
+ clear: Klar
8
+ invite_friends: "Bjud in vänner"
9
+ item_could_not_be_removed: "Punkt kunde inte flyttas från den senaste listan över verksamhetsområden."
10
+ item_created: "Tillagd verksamhet"
11
+ item_removed: "Punkt tagits bort från den senaste listan över verksamhetsområden."
12
+ joined_status: "{{name}} joined {{application_name}}"
13
+ paging_newer: «Nyare
14
+ paging_older: "Äldre »"
15
+ permission_denied: "Tyvärr kan du inte göra det."
16
+ post: Del
17
+ problem_with_status: "Det uppstod ett problem med att ändra din status"
18
+ status_indicator: är
19
+ status_update_prompt: "Vad gör du just nu?"
20
+ template_or_item_required: "En verksamhet kräver en mall eller ett objekt för att visas korrekt"
21
+ time_ago: "{{time_in_words}} Sedan"
22
+ update_error: "Oj ... Det uppstod ett problem. {{errors}}"
23
+ update_status_message: "uppdatera din status!"
24
+ updating_status_message: "Uppdatera din status. Vänta."
data/locales/tl.yml ADDED
@@ -0,0 +1,24 @@
1
+ ---
2
+ tl:
3
+ muck:
4
+ activities:
5
+ activity_feed_title: "Kamakailan-lamang na Aktibidad"
6
+ all_activities: "Ang lahat ng gawain"
7
+ clear: Malinaw
8
+ invite_friends: "Imbitahan ang mga Kaibigan"
9
+ item_could_not_be_removed: "Item ay hindi maaaring tanggalin mula sa listahan ng mga kamakailan-lamang na mga gawain."
10
+ item_created: "Added aktibidad"
11
+ item_removed: "Item na matagumpay na tinanggal mula sa listahan ng mga kamakailan-lamang na mga gawain."
12
+ joined_status: "{{name}} joined {{application_name}}"
13
+ paging_newer: "«Mas bagong"
14
+ paging_older: "Mas luma »"
15
+ permission_denied: "Paumanhin, hindi mo maaaring gawin na."
16
+ post: Ibahagi
17
+ problem_with_status: "Nagkaroon ng problema sa pagbabago ng iyong kalagayan"
18
+ status_indicator: ay
19
+ status_update_prompt: "Ano ang ginagawa mo ngayon?"
20
+ template_or_item_required: "An aktibidad ay nangangailangan ng isang template o sa isang bagay upang ipakita ng maayos"
21
+ time_ago: "{{time_in_words}} Ago"
22
+ update_error: "Oops ... Nagkaroon ng problema. {{errors}}"
23
+ update_status_message: "i-update ang iyong kalagayan!"
24
+ updating_status_message: "Ina-update ang iyong kalagayan. Mangyaring maghintay."
data/locales/uk.yml ADDED
@@ -0,0 +1,24 @@
1
+ ---
2
+ uk:
3
+ muck:
4
+ activities:
5
+ activity_feed_title: "Останні дії"
6
+ all_activities: "Усі заходи"
7
+ clear: Ясний
8
+ invite_friends: "Запросити друзів"
9
+ item_could_not_be_removed: "Пункт не може бути виключена зі списку останніх заходів."
10
+ item_created: "Додано діяльності"
11
+ item_removed: "Пункт успішно вилучено з недавніх заходів списку."
12
+ joined_status: "{{name}} joined {{application_name}}"
13
+ paging_newer: «Пізніше
14
+ paging_older: "Раніше »"
15
+ permission_denied: "На жаль, ви не можете цього робити."
16
+ post: Розділяти
17
+ problem_with_status: "Був проблема зміни статусу"
18
+ status_indicator: бути
19
+ status_update_prompt: "Що ви робите зараз?"
20
+ template_or_item_required: "Діяльність вимагає шаблон або елемент для правильного відображення"
21
+ time_ago: "{{time_in_words}} Назад"
22
+ update_error: "К сожалению ... Був проблема. {{errors}}"
23
+ update_status_message: "обновити свій статус!"
24
+ updating_status_message: "Оновлення статусу. Будь ласка, зачекайте."
data/locales/vi.yml ADDED
@@ -0,0 +1,24 @@
1
+ ---
2
+ vi:
3
+ muck:
4
+ activities:
5
+ activity_feed_title: "Hoạt động gần đây"
6
+ all_activities: "Tất cả các hoạt động"
7
+ clear: "Rõ ràng"
8
+ invite_friends: "Mời bạn bè"
9
+ item_could_not_be_removed: "Khoản có thể không được gỡ bỏ khỏi danh sách các hoạt động gần đây."
10
+ item_created: "Đăng từ hoạt động"
11
+ item_removed: "Khoản thành công gỡ bỏ khỏi danh sách các hoạt động gần đây."
12
+ joined_status: "{{name}} joined {{application_name}}"
13
+ paging_newer: "«Mơi hơn"
14
+ paging_older: "Cu hơn »"
15
+ permission_denied: "Xin lỗi, bạn không thể làm điều đó."
16
+ post: "Chia sẻ"
17
+ problem_with_status: "Có một vấn đề thay đổi tình trạng của bạn"
18
+ status_indicator: là
19
+ status_update_prompt: "Bạn đang làm gì ngay bây giờ?"
20
+ template_or_item_required: "Một hoạt động đòi hỏi một mẫu hoặc một mục để hiển thị một cách chính xác"
21
+ time_ago: "{{time_in_words}} Cách đây"
22
+ update_error: "Rất tiếc ... Có một vấn đề. {{errors}}"
23
+ update_status_message: "cập nhật tình trạng của bạn!"
24
+ updating_status_message: "Cập nhật tình trạng của bạn. Xin vui lòng chờ trong giây lát."
data/locales/zh-CN.yml ADDED
@@ -0,0 +1,24 @@
1
+ ---
2
+ zh-CN:
3
+ muck:
4
+ activities:
5
+ activity_feed_title: 近期活动
6
+ all_activities: 所有活动
7
+ clear: 清楚的
8
+ invite_friends: 邀请朋友
9
+ item_could_not_be_removed: 项目不能从最近的活动清单。
10
+ item_created: 时间活动
11
+ item_removed: 项目成功地从最近的活动清单。
12
+ joined_status: "{{name}} joined {{application_name}}"
13
+ paging_newer: «较新
14
+ paging_older: 较旧»
15
+ permission_denied: 对不起,你不能这样做。
16
+ post: 共享
17
+ problem_with_status: 有问题请更改您的状态
18
+ status_indicator: 是
19
+ status_update_prompt: 你在做什么呢?
20
+ template_or_item_required: 一项活动需要一个模板或一个项目,以显示正确
21
+ time_ago: "{{time_in_words}}前"
22
+ update_error: "哎呀...有一个问题。 {{errors}}"
23
+ update_status_message: 更新您的地位!
24
+ updating_status_message: 更新您的状态。请稍候。
data/locales/zh-TW.yml ADDED
@@ -0,0 +1,24 @@
1
+ ---
2
+ zh-TW:
3
+ muck:
4
+ activities:
5
+ activity_feed_title: 近期活動
6
+ all_activities: 所有活動
7
+ clear: 清楚的
8
+ invite_friends: 邀請朋友
9
+ item_could_not_be_removed: 項目不能從最近的活動清單。
10
+ item_created: 時間活動
11
+ item_removed: 項目成功地從最近的活動清單。
12
+ joined_status: "{{name}} joined {{application_name}}"
13
+ paging_newer: «較新
14
+ paging_older: 較舊»
15
+ permission_denied: 對不起,你不能這樣做。
16
+ post: 共享
17
+ problem_with_status: 有問題請更改您的狀態
18
+ status_indicator: 是
19
+ status_update_prompt: 你在做什麼呢?
20
+ template_or_item_required: 一項活動需要一個模板或一個項目,以顯示正確
21
+ time_ago: "{{time_in_words}}前"
22
+ update_error: "哎呀...有一個問題。 {{errors}}"
23
+ update_status_message: 更新您的地位!
24
+ updating_status_message: 更新您的狀態。請稍候。
data/locales/zh.yml ADDED
@@ -0,0 +1,24 @@
1
+ ---
2
+ zh:
3
+ muck:
4
+ activities:
5
+ activity_feed_title: 近期活动
6
+ all_activities: 所有活动
7
+ clear: 清楚的
8
+ invite_friends: 邀请朋友
9
+ item_could_not_be_removed: 项目不能从最近的活动清单。
10
+ item_created: 时间活动
11
+ item_removed: 项目成功地从最近的活动清单。
12
+ joined_status: "{{name}} joined {{application_name}}"
13
+ paging_newer: «较新
14
+ paging_older: 较旧»
15
+ permission_denied: 对不起,你不能这样做。
16
+ post: 共享
17
+ problem_with_status: 有问题请更改您的状态
18
+ status_indicator: 是
19
+ status_update_prompt: 你在做什么呢?
20
+ template_or_item_required: 一项活动需要一个模板或一个项目,以显示正确
21
+ time_ago: "{{time_in_words}}前"
22
+ update_error: "哎呀...有一个问题。 {{errors}}"
23
+ update_status_message: 更新您的地位!
24
+ updating_status_message: 更新您的状态。请稍候。
Binary file
@@ -0,0 +1,65 @@
1
+ jQuery(document).ready(function() {
2
+ apply_comment_methods();
3
+ });
4
+
5
+ function apply_comment_methods(){
6
+
7
+ hide_comment_boxes();
8
+ jQuery('.activity-no-comments').hide();
9
+
10
+ jQuery('.activity-has-comments').find('textarea').click(function(){
11
+ show_comment_box(this);
12
+ });
13
+ jQuery('.activity-has-comments').find('textarea').blur(function(){
14
+ textarea = jQuery(this);
15
+ if (textarea.val() == ''){
16
+ hide_comment_boxes();
17
+ }
18
+ });
19
+
20
+ jQuery('.make-comment').click(function(){
21
+ var id = this.id.replace('make_comment_activity_', '');
22
+ var comment_box = jQuery('#comment_activity_' + id);
23
+ comment_box.find('textarea').removeClass('min');
24
+ comment_box.find('textarea').addClass('max');
25
+ comment_box.show();
26
+ comment_box.find('textarea').get(0).focus();
27
+ comment_box.find('textarea').blur(function(){
28
+ if (jQuery(this).val() == ''){
29
+ jQuery(this).closest('.activity-comment').hide();
30
+ }
31
+ });
32
+ return false;
33
+ });
34
+ }
35
+
36
+ function hide_comment_boxes(){
37
+ jQuery('.activity-has-comments').children('.actor-icon').hide();
38
+ jQuery('.activity-has-comments').find('.button').hide();
39
+ jQuery('.activity-has-comments').find('textarea').val(COMMENT_PROMPT);
40
+ jQuery('.activity-has-comments').find('textarea').addClass('min');
41
+ }
42
+
43
+ function show_comment_box(obj){
44
+ textarea = jQuery(obj);
45
+ textarea.addClass('max');
46
+ textarea.removeClass('min');
47
+ textarea.closest('.comment-form-wrapper').siblings('.actor-icon').show();
48
+ textarea.siblings('.button').show();
49
+ if (textarea.val() == COMMENT_PROMPT) {
50
+ textarea.val('');
51
+ }
52
+ }
53
+
54
+ function get_latest_activity_id(){
55
+ var activities = jQuery('#activity-feed-content').children('.activity-status-update');
56
+ if(activities.length > 0){
57
+ return activities[0].id.replace('activity_', '');
58
+ } else {
59
+ return '';
60
+ }
61
+ }
62
+
63
+ function update_feed(request){
64
+ jQuery('#activity-feed-content').prepend(request);
65
+ }
data/rails/init.rb ADDED
@@ -0,0 +1,4 @@
1
+ ActiveSupport::Dependencies.load_once_paths << lib_path
2
+
3
+ require 'muck_activities'
4
+ require 'muck_activities/initialize_routes'
@@ -0,0 +1,148 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7
+ <head>
8
+ <title>Class: ActionController::Routing::RouteSet</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <meta http-equiv="Content-Script-Type" content="text/javascript" />
11
+ <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
12
+ <script type="text/javascript">
13
+ // <![CDATA[
14
+
15
+ function popupCode( url ) {
16
+ window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
17
+ }
18
+
19
+ function toggleCode( id ) {
20
+ if ( document.getElementById )
21
+ elem = document.getElementById( id );
22
+ else if ( document.all )
23
+ elem = eval( "document.all." + id );
24
+ else
25
+ return false;
26
+
27
+ elemStyle = elem.style;
28
+
29
+ if ( elemStyle.display != "block" ) {
30
+ elemStyle.display = "block"
31
+ } else {
32
+ elemStyle.display = "none"
33
+ }
34
+
35
+ return true;
36
+ }
37
+
38
+ // Make codeblocks hidden by default
39
+ document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
40
+
41
+ // ]]>
42
+ </script>
43
+
44
+ </head>
45
+ <body>
46
+
47
+
48
+
49
+ <div id="classHeader">
50
+ <table class="header-table">
51
+ <tr class="top-aligned-row">
52
+ <td><strong>Class</strong></td>
53
+ <td class="class-name-in-header">ActionController::Routing::RouteSet</td>
54
+ </tr>
55
+ <tr class="top-aligned-row">
56
+ <td><strong>In:</strong></td>
57
+ <td>
58
+ <a href="../../../files/lib/muck_activity/initialize_routes_rb.html">
59
+ lib/muck_activity/initialize_routes.rb
60
+ </a>
61
+ <br />
62
+ </td>
63
+ </tr>
64
+
65
+ <tr class="top-aligned-row">
66
+ <td><strong>Parent:</strong></td>
67
+ <td>
68
+ Object
69
+ </td>
70
+ </tr>
71
+ </table>
72
+ </div>
73
+ <!-- banner header -->
74
+
75
+ <div id="bodyContent">
76
+
77
+
78
+
79
+ <div id="contextContent">
80
+
81
+
82
+
83
+ </div>
84
+
85
+ <div id="method-list">
86
+ <h3 class="section-bar">Methods</h3>
87
+
88
+ <div class="name-list">
89
+ <a href="#M000001">load_routes_with_muck_activity!</a>&nbsp;&nbsp;
90
+ </div>
91
+ </div>
92
+
93
+ </div>
94
+
95
+
96
+ <!-- if includes -->
97
+
98
+ <div id="section">
99
+
100
+
101
+
102
+
103
+
104
+
105
+
106
+
107
+ <!-- if method_list -->
108
+ <div id="methods">
109
+ <h3 class="section-bar">Public Instance methods</h3>
110
+
111
+ <div id="method-M000001" class="method-detail">
112
+ <a name="M000001"></a>
113
+
114
+ <div class="method-heading">
115
+ <a href="#M000001" class="method-signature">
116
+ <span class="method-name">load_routes_with_muck_activity!</span><span class="method-args">()</span>
117
+ </a>
118
+ </div>
119
+
120
+ <div class="method-description">
121
+ <p><a class="source-toggle" href="#"
122
+ onclick="toggleCode('M000001-source');return false;">[Source]</a></p>
123
+ <div class="method-source-code" id="M000001-source">
124
+ <pre>
125
+ <span class="ruby-comment cmt"># File lib/muck_activity/initialize_routes.rb, line 2</span>
126
+ 2: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">load_routes_with_muck_activity!</span>
127
+ 3: <span class="ruby-identifier">muck_activity_routes</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-constant">File</span>.<span class="ruby-identifier">dirname</span>(<span class="ruby-keyword kw">__FILE__</span>), <span class="ruby-operator">*</span><span class="ruby-node">%w[.. .. config muck_activity_routes.rb]</span>)
128
+ 4: <span class="ruby-identifier">add_configuration_file</span>(<span class="ruby-identifier">muck_activity_routes</span>) <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">configuration_files</span>.<span class="ruby-identifier">include?</span> <span class="ruby-identifier">muck_activity_routes</span>
129
+ 5: <span class="ruby-identifier">load_routes_without_muck_activity!</span>
130
+ 6: <span class="ruby-keyword kw">end</span>
131
+ </pre>
132
+ </div>
133
+ </div>
134
+ </div>
135
+
136
+
137
+ </div>
138
+
139
+
140
+ </div>
141
+
142
+
143
+ <div id="validator-badges">
144
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
145
+ </div>
146
+
147
+ </body>
148
+ </html>
@@ -0,0 +1,107 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7
+ <head>
8
+ <title>Module: ActionController::Routing</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <meta http-equiv="Content-Script-Type" content="text/javascript" />
11
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
12
+ <script type="text/javascript">
13
+ // <![CDATA[
14
+
15
+ function popupCode( url ) {
16
+ window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
17
+ }
18
+
19
+ function toggleCode( id ) {
20
+ if ( document.getElementById )
21
+ elem = document.getElementById( id );
22
+ else if ( document.all )
23
+ elem = eval( "document.all." + id );
24
+ else
25
+ return false;
26
+
27
+ elemStyle = elem.style;
28
+
29
+ if ( elemStyle.display != "block" ) {
30
+ elemStyle.display = "block"
31
+ } else {
32
+ elemStyle.display = "none"
33
+ }
34
+
35
+ return true;
36
+ }
37
+
38
+ // Make codeblocks hidden by default
39
+ document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
40
+
41
+ // ]]>
42
+ </script>
43
+
44
+ </head>
45
+ <body>
46
+
47
+
48
+
49
+ <div id="classHeader">
50
+ <table class="header-table">
51
+ <tr class="top-aligned-row">
52
+ <td><strong>Module</strong></td>
53
+ <td class="class-name-in-header">ActionController::Routing</td>
54
+ </tr>
55
+ <tr class="top-aligned-row">
56
+ <td><strong>In:</strong></td>
57
+ <td>
58
+ </td>
59
+ </tr>
60
+
61
+ </table>
62
+ </div>
63
+ <!-- banner header -->
64
+
65
+ <div id="bodyContent">
66
+
67
+
68
+
69
+ <div id="contextContent">
70
+
71
+
72
+
73
+ </div>
74
+
75
+
76
+ </div>
77
+
78
+
79
+ <!-- if includes -->
80
+
81
+ <div id="section">
82
+
83
+ <div id="class-list">
84
+ <h3 class="section-bar">Classes and Modules</h3>
85
+
86
+ Class <a href="Routing/RouteSet.html" class="link">ActionController::Routing::RouteSet</a><br />
87
+
88
+ </div>
89
+
90
+
91
+
92
+
93
+
94
+
95
+
96
+ <!-- if method_list -->
97
+
98
+
99
+ </div>
100
+
101
+
102
+ <div id="validator-badges">
103
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
104
+ </div>
105
+
106
+ </body>
107
+ </html>