app/models/abilities/everyone.rb
Method initialize
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def initialize(user)
can [:read, :map], Debate
can [:read, :map, :summary, :share], Proposal
can :read, Comment
can :read, Poll
Line is too long. [132/100] (https://github.com/bbatsov/ruby-style-guide#80-character-limits) Open
Open
can [:read, :debate, :draft_publication, :allegations, :result_publication, :proposals], Legislation::Process, published: true
- Exclude checks