gistflow/gistflow

View on GitHub
app/models/ability.rb

Summary

Maintainability
A
1 hr
Test Coverage

Method initialize has 34 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  def initialize(user)
    # simple authorization like self.current_user = User.first
    can :create, :sessions if development?
    
    can :show, :sitemap
Severity: Minor
Found in app/models/ability.rb - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status