VRFS-4070 - fix cha by fix PostPrecossorMixin

This commit is contained in:
Seth Call 2016-05-07 21:17:19 -05:00
parent 5ce780f03b
commit 30aec92512
3 changed files with 5 additions and 2 deletions

View File

@ -155,7 +155,7 @@ module JamRuby
analysis = LessonSessionAnalyser.analyse(self)
self.analysis = analysis_to_json(analysis)
self.analysis = LessonSession.analysis_to_json(analysis)
self.success = analysis[:bill]
self.analysed_at = Time.now
self.analysed = true

View File

@ -55,7 +55,7 @@ teacherActions = window.JK.Actions.Teacher
user.musician_profile = '/client#/profile/' + user.id
user.best_profile = user.musician_profile
if user.is_a_teacher
if user.is_a_teacher && user.teacher?
cheapest_lesson_stmt = '(no pricing set yet)'
lowestPrice = null
lowestDuration = null

View File

@ -9,6 +9,9 @@
<!--<link href='http://fonts.googleapis.com/css?family=Raleway:100,200,300,400,500,600,700' rel='stylesheet' type='text/css'>-->
<%= stylesheet_link_tag "client/client", media: "all" %>
<%= include_gon %>
<% if Rails.env.test? %>
<%= javascript_include_tag "sinon" %>
<% end %>
<%= javascript_include_tag "application" %>
<%= csrf_meta_tags %>
<meta name="description" content="Enter here to browse the JamKazam platform">