Commit 948ad037dc9b42e326cd2c6a85910d3eb3c0fa51
1 parent
b5b64826
Exists in
master
and in
29 other branches
rails3: lambda -> proc
(ActionItem2859)
Showing
3 changed files
with
3 additions
and
3 deletions
Show diff stats
plugins/people_block/lib/friends_block.rb
@@ -18,7 +18,7 @@ class FriendsBlock < PeopleBlockBase | @@ -18,7 +18,7 @@ class FriendsBlock < PeopleBlockBase | ||
18 | 18 | ||
19 | def footer | 19 | def footer |
20 | owner = self.owner | 20 | owner = self.owner |
21 | - lambda do | 21 | + proc do |
22 | link_to _('View all'), :profile => owner.identifier, :controller => 'profile', :action => 'friends' | 22 | link_to _('View all'), :profile => owner.identifier, :controller => 'profile', :action => 'friends' |
23 | end | 23 | end |
24 | end | 24 | end |
plugins/people_block/lib/members_block.rb
@@ -22,7 +22,7 @@ class MembersBlock < PeopleBlockBase | @@ -22,7 +22,7 @@ class MembersBlock < PeopleBlockBase | ||
22 | def footer | 22 | def footer |
23 | owner = self.owner | 23 | owner = self.owner |
24 | role_key = visible_role | 24 | role_key = visible_role |
25 | - lambda do | 25 | + proc do |
26 | link_to _('View all'), :profile => owner.identifier, :controller => 'people_block_plugin_profile', :action => 'members', :role_key => role_key | 26 | link_to _('View all'), :profile => owner.identifier, :controller => 'people_block_plugin_profile', :action => 'members', :role_key => role_key |
27 | end | 27 | end |
28 | end | 28 | end |
plugins/people_block/lib/people_block_base.rb
@@ -52,7 +52,7 @@ class PeopleBlockBase < Block | @@ -52,7 +52,7 @@ class PeopleBlockBase < Block | ||
52 | expanded_address = expand_address(self.address) | 52 | expanded_address = expand_address(self.address) |
53 | end | 53 | end |
54 | 54 | ||
55 | - lambda do | 55 | + proc do |
56 | count = 0 | 56 | count = 0 |
57 | list = profiles.map {|item| | 57 | list = profiles.map {|item| |
58 | count += 1 | 58 | count += 1 |