From f15d572167ea9402a41a351288217319307ca129 Mon Sep 17 00:00:00 2001 From: Leandro Nunes dos Santos Date: Wed, 5 Aug 2015 19:07:47 -0300 Subject: [PATCH] adding new method to run script --- controllers/myprofile/.dialoga_plugin_myprofile_controller.rb.swp | Bin 12288 -> 0 bytes controllers/myprofile/dialoga_plugin_myprofile_controller.rb | 16 ++++++++++++---- 2 files changed, 12 insertions(+), 4 deletions(-) delete mode 100644 controllers/myprofile/.dialoga_plugin_myprofile_controller.rb.swp diff --git a/controllers/myprofile/.dialoga_plugin_myprofile_controller.rb.swp b/controllers/myprofile/.dialoga_plugin_myprofile_controller.rb.swp deleted file mode 100644 index 8efcfd4..0000000 Binary files a/controllers/myprofile/.dialoga_plugin_myprofile_controller.rb.swp and /dev/null differ diff --git a/controllers/myprofile/dialoga_plugin_myprofile_controller.rb b/controllers/myprofile/dialoga_plugin_myprofile_controller.rb index 3bec1e1..321239a 100644 --- a/controllers/myprofile/dialoga_plugin_myprofile_controller.rb +++ b/controllers/myprofile/dialoga_plugin_myprofile_controller.rb @@ -1,9 +1,17 @@ class DialogaPluginMyprofileController < MyProfileController # before_filter :check_permission +# protect 'edit_profile', :profile, :only => [:set_home_page] - def sent_report - report = params[:report] || + + def send_report +# Dir + path = File.join(Rails.root, 'script','sent_proposal_report') + out = IO.popen(path) + raise out.readlines.inspect +#profile.name +#render :text => 'bli' +# report = params[:report] || # @article.comment_paragraph_plugin_activate = !@article.comment_paragraph_plugin_activate # @article.save! # redirect_to @article.view_url @@ -11,9 +19,9 @@ class DialogaPluginMyprofileController < MyProfileController protected - def check_permission +# def check_permission # @article = profile.articles.find(params[:id]) # render_access_denied unless @article.comment_paragraph_plugin_enabled? && @article.allow_edit?(user) - end +# end end -- libgit2 0.21.2