Skip to content

Commit 724631a

Browse files
authored
Merge pull request #83 from phillmv/fix-calendar-views
Fixed simple_calendar views.
2 parents 705b006 + 084dce2 commit 724631a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/views/simple_calendar/_month_calendar.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<% if defined?(Haml) && respond_to?(:block_is_haml?) && block_is_haml?(block) %>
2323
<% capture_haml(day, sorted_events.fetch(day, []), &block) %>
2424
<% else %>
25-
<% block.call day, sorted_events.fetch(day, []) %>
25+
<% passed_block.call day, sorted_events.fetch(day, []) %>
2626
<% end %>
2727
<% end %>
2828
<% end %>

app/views/simple_calendar/_week_calendar.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
<% if defined?(Haml) && respond_to?(:block_is_haml?) && block_is_haml?(block) %>
3232
<% capture_haml(day, sorted_events.fetch(day, []), &block) %>
3333
<% else %>
34-
<% block.call day, sorted_events.fetch(day, []) %>
34+
<% passed_block.call day, sorted_events.fetch(day, []) %>
3535
<% end %>
3636
<% end %>
3737
<% end %>

0 commit comments

Comments
 (0)