app/models/abilities/administrator.rb
Method initialize
has 68 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def initialize(user)
merge Abilities::Moderation.new(user)
can :restore, Comment
cannot :restore, Comment, hidden_at: nil
Line is too long. [111/100] (https://github.com/bbatsov/ruby-style-guide#80-character-limits) Open
Open
cannot :comment_as_moderator, [::Legislation::Question, Legislation::Annotation, ::Legislation::Proposal]
- Exclude checks
Line is too long. [115/100] (https://github.com/bbatsov/ruby-style-guide#80-character-limits) Open
Open
Legislation::Question, Legislation::Proposal, Legislation::Annotation, Topic]
- Exclude checks
Line is too long. [138/100] (https://github.com/bbatsov/ruby-style-guide#80-character-limits) Open
Open
can [:read, :create, :update, :destroy, :add_question, :search_booths, :search_officers, :booth_assignments, :results, :stats], Poll
- Exclude checks