Class: FiverunsTuneupMerb::Runs

Inherits:
Application
  • Object
show all
Defined in:
app/controllers/runs.rb

Instance Method Summary collapse

Instance Method Details

#shareObject



5
6
7
8
9
10
11
12
13
# File 'app/controllers/runs.rb', line 5

def share
  run_id = Fiveruns::Tuneup::Run.share(params[:slug])
  result = if run_id
    {:run_id => run_id}
  else
    {:error => "Could not send run.  Please contact [email protected] if this problem persists."}
  end
  render_json result.to_json
end