locomotivecms/engine

View on GitHub
lib/locomotive/simple_token_authentication.rb

Summary

Maintainability
A
0 mins
Test Coverage
# Fix bug: https://github.com/gonzalo-bulnes/simple_token_authentication/issues/83
module SimpleTokenAuthentication
  class Entity
    def name
      @name.gsub('::', '-')
    end
    def name_underscore
      name.underscore.gsub('-', '_')
    end
  end
end