Commit f15d572167ea9402a41a351288217319307ca129
1 parent
5d10ae37
Exists in
master
adding new method to run script
Showing
2 changed files
with
12 additions
and
4 deletions
Show diff stats
controllers/myprofile/.dialoga_plugin_myprofile_controller.rb.swp
No preview for this file type
controllers/myprofile/dialoga_plugin_myprofile_controller.rb
1 | class DialogaPluginMyprofileController < MyProfileController | 1 | class DialogaPluginMyprofileController < MyProfileController |
2 | 2 | ||
3 | # before_filter :check_permission | 3 | # before_filter :check_permission |
4 | +# protect 'edit_profile', :profile, :only => [:set_home_page] | ||
4 | 5 | ||
5 | - def sent_report | ||
6 | - report = params[:report] || | 6 | + |
7 | + def send_report | ||
8 | +# Dir | ||
9 | + path = File.join(Rails.root, 'script','sent_proposal_report') | ||
10 | + out = IO.popen(path) | ||
11 | + raise out.readlines.inspect | ||
12 | +#profile.name | ||
13 | +#render :text => 'bli' | ||
14 | +# report = params[:report] || | ||
7 | # @article.comment_paragraph_plugin_activate = !@article.comment_paragraph_plugin_activate | 15 | # @article.comment_paragraph_plugin_activate = !@article.comment_paragraph_plugin_activate |
8 | # @article.save! | 16 | # @article.save! |
9 | # redirect_to @article.view_url | 17 | # redirect_to @article.view_url |
@@ -11,9 +19,9 @@ class DialogaPluginMyprofileController < MyProfileController | @@ -11,9 +19,9 @@ class DialogaPluginMyprofileController < MyProfileController | ||
11 | 19 | ||
12 | protected | 20 | protected |
13 | 21 | ||
14 | - def check_permission | 22 | +# def check_permission |
15 | # @article = profile.articles.find(params[:id]) | 23 | # @article = profile.articles.find(params[:id]) |
16 | # render_access_denied unless @article.comment_paragraph_plugin_enabled? && @article.allow_edit?(user) | 24 | # render_access_denied unless @article.comment_paragraph_plugin_enabled? && @article.allow_edit?(user) |
17 | - end | 25 | +# end |
18 | 26 | ||
19 | end | 27 | end |