Skip to content

Commit

Permalink
fixing a syntax error
Browse files Browse the repository at this point in the history
  • Loading branch information
clayallsopp committed Jul 4, 2012
1 parent 782be7b commit 6ce7af2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions motion/core/device/camera.rb
Expand Up @@ -80,10 +80,10 @@ def picture(options = {}, presenting_controller = nil, &block)
@options[:media_types] = [:image] if not @options.has_key? :media_types

# If we're using Camera.any, by default use photo library
if not @options.has_key?(:source_type) && self.location == :none
if !@options.has_key?(:source_type) and self.location == :none
@options[:source_type] = :photo_library
# If we're using a real Camera, by default use the camera.
elsif not @options.has_key?(:source_type)
elsif !@options.has_key?(:source_type)
@options[:source_type] = :camera
end

Expand Down

0 comments on commit 6ce7af2

Please sign in to comment.