public
Description: OneBody is web-based software that connects community members, especially churches, on the web.
Homepage: http://beonebody.com
Clone URL: git://github.com/seven1m/onebody.git
Move scheduled tasks controller into administration namespace.
Fix recipe listing in various places.
Fix log item wall link.
Add web cap tasks.
Tim Morgan (author)
Tue Aug 19 17:37:46 -0700 2008
commit  471a6fe575ace050df45cd6ab01c552a5d3e910e
tree    953b41de052f6043c48a0d1f7c38cb7646950eef
parent  a4008e480741d86bf97da757f627e20856c6db33
...
139
140
141
142
 
143
144
145
...
139
140
141
 
142
143
144
145
0
@@ -139,7 +139,7 @@ class GroupsController < ApplicationController
0
   private
0
   
0
     def feature_enabled?
0
-      unless Setting.get(:features, :groups) and Site.current.max_groups > 0
0
+      unless Setting.get(:features, :groups) and (Site.current.max_groups.nil? or Site.current.max_groups > 0)
0
         redirect_to people_path
0
         false
0
       end
...
3
4
5
6
 
7
8
9
...
3
4
5
 
6
7
8
9
0
@@ -3,7 +3,7 @@ class SharesController < ApplicationController
0
   def index
0
     @pictures = Picture.all(:limit => 10, :order => 'created_at desc')
0
     @verses = Verse.all(:limit => 5, :order => 'created_at desc')
0
-    @recipes = Recipe.all(:limit => 5, :order => 'created_at desc')
0
+    @recipes = Recipe.paginate(:per_page => 5, :order => 'created_at desc', :page => 1)
0
     @publications = Publication.all(:limit => 2, :order => 'created_at desc')
0
   end
0
   
...
34
35
36
37
 
38
39
40
...
34
35
36
 
37
38
39
40
0
@@ -34,7 +34,7 @@
0
   in the <%= link_to h(object.group.name_group), url_for(object.group) %>.
0
 <% elsif object.is_a? Message and object.wall %>
0
   posted a message on 
0
-  <%= link_to "#{object.wall.name_possessive} wall", url_for(object.wall, :anchor => 'wall') %>.
0
+  <%= link_to "#{object.wall.name_possessive} wall", person_path(object.wall, :anchor => 'wall') %>.
0
 <% elsif object.is_a? Person %>
0
   updated <%= item.person == @logged_in ? 'your' : 'their' %>
0
   <%= item.showable_change_keys.to_sentence %>.
...
11
12
13
14
 
15
...
11
12
13
 
14
15
0
@@ -11,5 +11,5 @@
0
 
0
 <% if @tag.recipes.any? %>
0
   <h2>Recipes</h2>
0
-  <%= render :partial => 'recipes/list', :locals => {:recipes => @tag.recipes} %>
0
+  <%= render :partial => 'recipes/list', :locals => {:recipes => @tag.recipes.paginate(:page => 1, :per_page => 100)} %>
0
 <% end %>
...
29
30
31
32
...
29
30
31
 
0
@@ -29,4 +29,3 @@ set :repository_cache, 'git_cache'
0
 set :deploy_via, :remote_cache
0
 set :deploy_to, "/var/www/apps/#{application}"
0
 set :use_sudo, false
0
-set :maintenance_file_path, "#{shared_path}/public/maintenance.html"
...
13
14
15
16
 
17
18
19
...
13
14
15
 
16
17
18
19
0
@@ -13,7 +13,7 @@ class CreateAlbums < ActiveRecord::Migration
0
     Site.each do |site|
0
       Picture.all.each do |picture|
0
         name, description, person_id = \
0
-          picture.connection.select_one(['select name, description, person_id from events where id = ?', picture.event_id])
0
+          picture.connection.select_one("select name, description, person_id from events where id = #{picture.event_id}")
0
         album = Album.find_or_initialize_by_name(name)
0
         album.update_attributes! :description => description, :person_id => person_id
0
         picture.album = album
...
1
2
3
4
 
5
6
7
...
1
2
3
 
4
5
6
7
0
@@ -1,7 +1,7 @@
0
 class CleanUp < ActiveRecord::Migration
0
   def self.up
0
     change_table :families do |t|
0
-      t.remove :security_token
0
+      t.remove :security_token rescue nil
0
       t.remove :mail_group
0
     end
0
   end

Comments