-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generated code runs afoul of Rubocop.
The Actor and Controller generated by the work generator violate the `Style/ClassAndModuleChildren` rule that is enabled by default in Rubocop.
- Loading branch information
Showing
2 changed files
with
9 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
# Generated via | ||
# `rails generate curation_concerns:work <%= class_name %>` | ||
module CurationConcerns::Actors | ||
class <%= class_name %>Actor < CurationConcerns::Actors::BaseActor | ||
module CurationConcerns | ||
module Actors | ||
class <%= class_name %>Actor < CurationConcerns::Actors::BaseActor | ||
end | ||
end | ||
end |
8 changes: 5 additions & 3 deletions
8
lib/generators/curation_concerns/work/templates/controller.rb.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
# Generated via | ||
# `rails generate curation_concerns:work <%= class_name %>` | ||
|
||
class CurationConcerns::<%= class_name.pluralize %>Controller < ApplicationController | ||
include CurationConcerns::CurationConcernController | ||
self.curation_concern_type = <%= class_name %> | ||
module CurationConcerns | ||
class <%= class_name.pluralize %>Controller < ApplicationController | ||
include CurationConcerns::CurationConcernController | ||
self.curation_concern_type = <%= class_name %> | ||
end | ||
end |