[Git][noosfero/noosfero][master] 2 commits: Remove StatisticsBlock#content method
Bráulio Bhavamitra
gitlab at mg.gitlab.com
Sat May 7 10:55:38 BRT 2016
Bráulio Bhavamitra pushed to branch master at Noosfero / noosfero
Commits:
9d07c142 by Rafael Reggiani Manzo at 2016-05-07T09:43:34-03:00
Remove StatisticsBlock#content method
It is no longer necessary given the new BoxesHelper structure. This just
required a view rename in order to properly work with it.
- - - - -
1eb7f902 by Bráulio Bhavamitra at 2016-05-07T13:55:24+00:00
Merge branch 'refactor_statistics_pugin' into 'master'
Remove StatisticsBlock#content method
It is no longer necessary given the new BoxesHelper structure. This just
required a view rename in order to properly work with it.
See merge request !905
- - - - -
2 changed files:
- plugins/statistics/lib/statistics_block.rb
- plugins/statistics/views/statistics_block.html.erb → plugins/statistics/views/blocks/statistics.html.erb
Changes:
=====================================
plugins/statistics/lib/statistics_block.rb
=====================================
--- a/plugins/statistics/lib/statistics_block.rb
+++ b/plugins/statistics/lib/statistics_block.rb
@@ -149,12 +149,4 @@ class StatisticsBlock < Block
end
end
- def content(args={})
- block = self
-
- proc do
- render :file => 'statistics_block', :locals => { :block => block }
- end
- end
-
end
=====================================
plugins/statistics/views/statistics_block.html.erb → plugins/statistics/views/blocks/statistics.html.erb
=====================================
--- a/plugins/statistics/views/statistics_block.html.erb
+++ b/plugins/statistics/views/blocks/statistics.html.erb
View it on GitLab: https://gitlab.com/noosfero/noosfero/compare/513c72d5bd9c0e51c5fbc3a9e9e1145e291eceb3...1eb7f90295f07aabd220dbcde0753f2245b0923b
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20160507/5c0b6ab6/attachment-0001.html>
More information about the Noosfero-dev
mailing list