Skip to content

Commit

Permalink
Generated code runs afoul of Rubocop.
Browse files Browse the repository at this point in the history
The Actor and Controller generated by the work generator violate the `Style/ClassAndModuleChildren` rule that is enabled by default in Rubocop.
  • Loading branch information
mjgiarlo committed May 17, 2016
1 parent 3682868 commit 2b6f3ba
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
6 changes: 4 additions & 2 deletions lib/generators/curation_concerns/work/templates/actor.rb.erb
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
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

0 comments on commit 2b6f3ba

Please sign in to comment.