Skip to content

Commit

Permalink
Make CameraWrapper forward missing calls to the underlying `@camera…
Browse files Browse the repository at this point in the history
…` instance
  • Loading branch information
Sija committed Aug 24, 2024
1 parent 64ac26b commit a2f8bf0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/gphoto2/web/camera_wrapper.cr
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ module GPhoto2
def initialize(@camera, @timeout : Time::Span = 10.seconds)
end

# forward_missing_to :camera
forward_missing_to @camera
end
end
end
2 changes: 1 addition & 1 deletion src/gphoto2/web/routes.cr
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ get "/cameras" do |env|
GPhoto2::Web.reset_cameras if reload

GPhoto2::Web.cameras do |cameras|
send_json env, cameras.map(&.camera)
send_json env, cameras
end
end

Expand Down

0 comments on commit a2f8bf0

Please sign in to comment.