-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update to latest rubocop and rubocop-rspec
- Loading branch information
Showing
12 changed files
with
59 additions
and
41 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
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
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
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,5 +1,7 @@ | ||
class Admin::FeaturesController < Flip::FeaturesController | ||
before_action do | ||
authorize! :manage, Feature | ||
module Admin | ||
class FeaturesController < Flip::FeaturesController | ||
before_action do | ||
authorize! :manage, Feature | ||
end | ||
end | ||
end |
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,5 +1,7 @@ | ||
class Admin::StrategiesController < Flip::StrategiesController | ||
before_action do | ||
authorize! :manage, Feature | ||
module Admin | ||
class StrategiesController < Flip::StrategiesController | ||
before_action do | ||
authorize! :manage, Feature | ||
end | ||
end | ||
end |
20 changes: 11 additions & 9 deletions
20
app/presenters/curation_concerns/generic_work_show_presenter.rb
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,13 +1,15 @@ | ||
class CurationConcerns::GenericWorkShowPresenter < Sufia::WorkShowPresenter | ||
self.file_presenter_class = Hybox::FileSetPresenter | ||
module CurationConcerns | ||
class GenericWorkShowPresenter < Sufia::WorkShowPresenter | ||
self.file_presenter_class = Hybox::FileSetPresenter | ||
|
||
def manifest_url | ||
manifest_helper.polymorphic_url([:manifest, self]) | ||
end | ||
def manifest_url | ||
manifest_helper.polymorphic_url([:manifest, self]) | ||
end | ||
|
||
private | ||
private | ||
|
||
def manifest_helper | ||
@manifest_helper ||= ManifestHelper.new(request.base_url) | ||
end | ||
def manifest_helper | ||
@manifest_helper ||= ManifestHelper.new(request.base_url) | ||
end | ||
end | ||
end |
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
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
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
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
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
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