Skip to content

Commit

Permalink
MSIC - Make rubocop happy
Browse files Browse the repository at this point in the history
  • Loading branch information
TorvaldsDB committed Jun 15, 2021
1 parent 4f48b9a commit a2700e0
Show file tree
Hide file tree
Showing 16 changed files with 43 additions and 11 deletions.
4 changes: 3 additions & 1 deletion spec/wulin_app/app/controllers/addresses_controller.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

class AddressesController < WulinMaster::ScreenController
controller_for_screen AddressScreen
end
end
4 changes: 3 additions & 1 deletion spec/wulin_app/app/controllers/clients_controller.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

class ClientsController < WulinMaster::ScreenController
controller_for_screen ClientScreen
end
end
4 changes: 3 additions & 1 deletion spec/wulin_app/app/controllers/courses_controller.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

class CoursesController < WulinMaster::ScreenController
controller_for_screen CourseScreen
end
end
4 changes: 3 additions & 1 deletion spec/wulin_app/app/controllers/trainings_controller.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

class TrainingsController < WulinMaster::ScreenController
controller_for_screen TrainingScreen
end
end
2 changes: 2 additions & 0 deletions spec/wulin_app/app/grids/address_grid.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

class AddressGrid < WulinMaster::Grid
title 'Addresses'

Expand Down
4 changes: 3 additions & 1 deletion spec/wulin_app/app/grids/client_grid.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

class ClientGrid < WulinMaster::Grid
title 'Clients'

Expand All @@ -8,4 +10,4 @@ class ClientGrid < WulinMaster::Grid
column :name

load_default_actions # Add default toolbar items for this grid
end
end
4 changes: 3 additions & 1 deletion spec/wulin_app/app/grids/course_grid.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

class CourseGrid < WulinMaster::Grid
title 'Courses'

Expand All @@ -9,4 +11,4 @@ class CourseGrid < WulinMaster::Grid
column :training_id

load_default_actions # Add default toolbar items for this grid
end
end
4 changes: 3 additions & 1 deletion spec/wulin_app/app/grids/training_grid.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

class TrainingGrid < WulinMaster::Grid
title 'Trainings'

Expand All @@ -9,4 +11,4 @@ class TrainingGrid < WulinMaster::Grid
column :teacher_id

load_default_actions # Add default toolbar items for this grid
end
end
2 changes: 2 additions & 0 deletions spec/wulin_app/app/models/address.rb
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
# frozen_string_literal: true

class Address < ActiveRecord::Base
end
2 changes: 2 additions & 0 deletions spec/wulin_app/app/models/client.rb
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
# frozen_string_literal: true

class Client < ActiveRecord::Base
end
2 changes: 2 additions & 0 deletions spec/wulin_app/app/models/course.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

class Course < ActiveRecord::Base
belongs_to :training
end
2 changes: 2 additions & 0 deletions spec/wulin_app/app/models/training.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

class Training < ActiveRecord::Base
belongs_to :teacher
belongs_to :client
Expand Down
4 changes: 3 additions & 1 deletion spec/wulin_app/app/screens/address_screen.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
# frozen_string_literal: true

class AddressScreen < WulinMaster::Screen
title 'Addresses'

path '/addresses'

grid AddressGrid
end
end
4 changes: 3 additions & 1 deletion spec/wulin_app/app/screens/client_screen.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
# frozen_string_literal: true

class ClientScreen < WulinMaster::Screen
title 'Clients'

path '/clients'

grid ClientGrid
end
end
4 changes: 3 additions & 1 deletion spec/wulin_app/app/screens/course_screen.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
# frozen_string_literal: true

class CourseScreen < WulinMaster::Screen
title 'Courses'

path '/courses'

grid CourseGrid
end
end
4 changes: 3 additions & 1 deletion spec/wulin_app/app/screens/training_screen.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
# frozen_string_literal: true

class TrainingScreen < WulinMaster::Screen
title 'Trainings'

path '/trainings'

grid TrainingGrid
end
end

0 comments on commit a2700e0

Please sign in to comment.