Bergrebell / CyberCoach

1 stars 1 forks source link

refactor raise statements in Facade::SportSession / Facade::User #48

Closed lexruee closed 9 years ago

lexruee commented 9 years ago

Example.

Change

raise Error, 'User is not of type Facade::User!' if params[:user].nil? or not params[:user].is_a?(Facade::User)

to

raise 'User is not of type Facade::User!' if params[:user].nil? or not params[:user].is_a?(Facade::User)

and also for the other raise statements (remove Error).

lexruee commented 9 years ago

Refactored in commit: f1ca45579f9b0c5b97fe9b5443d5aa45bf616817