Skip to content

Commit

Permalink
fix a bug: the picker instance is missing in the parameters of front_…
Browse files Browse the repository at this point in the history
…camera?
  • Loading branch information
matrixise committed Jul 19, 2012
1 parent e76c0f3 commit 5f0e6de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion motion/core/device.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def camera

# Verifies that the device running has a front facing camera.
# @return [TrueClass, FalseClass] true will be returned if the device has a front facing camera, false otherwise.
def front_camera?
def front_camera?(picker=UIImagePickerController)
p "This method (front_camera?) is DEPRECATED. Transition to using Device.camera.front?"
picker.isCameraDeviceAvailable(UIImagePickerControllerCameraDeviceFront)
end
Expand Down

0 comments on commit 5f0e6de

Please sign in to comment.