* working through build issues

This commit is contained in:
Seth Call 2015-06-09 07:27:07 -05:00
parent 55c9118e56
commit 2f562b7df3
3 changed files with 20 additions and 2 deletions

View File

@ -13,7 +13,7 @@ class ApiUsersController < ApiController
:band_invitation_index, :band_invitation_show, :band_invitation_update, # band invitations
:set_password, :begin_update_email, :update_avatar, :delete_avatar, :generate_filepicker_policy,
:share_session, :share_recording,
:affiliate_report, :audio_latency]
:affiliate_report, :audio_latency, :broadcast_notification]
respond_to :json
@ -804,6 +804,19 @@ class ApiUsersController < ApiController
end
end
def broadcast_notification
@broadcast = BroadcastNotification.next_broadcast(current_user)
if @broadcast
# mark it as viewed
@broadcast.did_view(current_user)
respond_with_model(@broadcast)
else
render json: { message: 'Not Found'}, status: 404
end
end
###################### RECORDINGS #######################
# def recording_index
# @recordings = User.recording_index(current_user, params[:id])

View File

@ -0,0 +1,3 @@
object @broadcast
attributes :message, :button_label, :button_url

View File

@ -37,8 +37,10 @@ bundle install --path vendor/bundle
npm install
set +e
echo "cleaning assets from last build"
# clean assets, because they may be lingering from last build
bundle exec rake assets:clean
# bundle exec rake assets:clean
rm -rf $DIR/public/assets
if [ "$?" = "0" ]; then
echo "success: updated dependencies"