Commit a2b4c4590dea5035b22a537e81ef6b79ea020b09
1 parent
9a7f4e8e
Exists in
staging
and in
29 other branches
Remove EventBlock#content method
It is no longer necessary given the rendering structure at BoxesHelper.
Showing
1 changed file
with
0 additions
and
10 deletions
Show diff stats
plugins/event/lib/event_plugin/event_block.rb
| @@ -47,16 +47,6 @@ class EventPlugin::EventBlock < Block | @@ -47,16 +47,6 @@ class EventPlugin::EventBlock < Block | ||
| 47 | event_list | 47 | event_list |
| 48 | end | 48 | end |
| 49 | 49 | ||
| 50 | - def content(args={}) | ||
| 51 | - block = self | ||
| 52 | - proc do | ||
| 53 | - render( | ||
| 54 | - :file => 'blocks/event', | ||
| 55 | - :locals => { :block => block } | ||
| 56 | - ) | ||
| 57 | - end | ||
| 58 | - end | ||
| 59 | - | ||
| 60 | def human_time_left(days_left) | 50 | def human_time_left(days_left) |
| 61 | months_left = (days_left/30.0).round | 51 | months_left = (days_left/30.0).round |
| 62 | if days_left <= -60 | 52 | if days_left <= -60 |