diff --git a/.rubocop.yml b/.rubocop.yml index 82791a5..5f4f67e 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -11,7 +11,7 @@ AllCops: DisplayCopNames: true Layout/LineLength: - Max: 120 + Max: 125 Metrics/MethodLength: Include: - 'app/controllers/*' @@ -59,4 +59,4 @@ Style/HashEachMethods: Style/HashTransformKeys: Enabled: false Style/HashTransformValues: - Enabled: false \ No newline at end of file + Enabled: false diff --git a/app/controllers/api/v1/reservations_controller.rb b/app/controllers/api/v1/reservations_controller.rb index a6b5808..2417569 100644 --- a/app/controllers/api/v1/reservations_controller.rb +++ b/app/controllers/api/v1/reservations_controller.rb @@ -35,7 +35,7 @@ def update # DELETE /reservations/1 def destroy - if @reservation.destroy! + if @reservation.destroy! render json: { message: 'Reservation deleted successfully' }, status: :no_content else render json: { error: 'Failed to delete Reservation' }, status: :unprocessable_entity diff --git a/config/credentials.yml.enc b/config/credentials.yml.enc deleted file mode 100644 index 81287f1..0000000 --- a/config/credentials.yml.enc +++ /dev/null @@ -1 +0,0 @@ -VB3sNFERqzX4uqWwCzAUvhh9gn32ynd3z5Z53TRusG8/if9tTfo5bFW6peQstMJ2biYuMridqcn4wyhl+3rX9TVgr3lmWDSvbRkIBeEcI2vscAb61eRPps44a0IzDLtbP0ok+9ECgAw+LfBKpeoKXymmmPGkjDOc1nfjZwxKsYj79/yC6UiZfODVbPQ0bv/qxq67rDoZorDl2KPt48HnWuUuMoG+8LwISi9Oad+e8Z5ZrDu+93nIRu0706wqffx11xrIRzqTjQm5+KwHX/y25N2PxwK9Bde27Kz5NuQURxm1yDfEZJJA08aPVXan6IxmlEDhmWFcarm9nRQUtr6keiz/EgyPE71F99cG4y5xahENVEeFBtc4bRAEo2O6TEpiaCsfe926xaJLTT4wZXyYz3/Dwlo7--BEFaqjiMRqtcqRBZ--MzJAf8jUO34Crhq9BSx1iQ== \ No newline at end of file diff --git a/spec/model/reservations_spec.rb b/spec/model/reservations_spec.rb index 13f4a2d..b0589b4 100644 --- a/spec/model/reservations_spec.rb +++ b/spec/model/reservations_spec.rb @@ -7,7 +7,7 @@ before { user.save } let(:plane) do - Aeroplane.new( name: "boning 777", model: 'ruby@mail.com', image: 'image 1', description: 'Description of the planes', + Aeroplane.new(name: 'boning 777', model: 'ruby@mail.com', image: 'image 1', description: 'Description of the planes', number_of_seats: 6, location: 'Middle Earth', fee: 60.0) end before { plane.save }