diff --git a/server/lib/twenty/server/model/project.rb b/server/lib/twenty/server/model/project.rb index b8f36f9..27bdeb5 100644 --- a/server/lib/twenty/server/model/project.rb +++ b/server/lib/twenty/server/model/project.rb @@ -18,21 +18,21 @@ class Twenty::Project < Sequel::Model ## # @return [String] - # The path to a project. + # The path to a project def path super&.sub(Dir.home, "~") end ## # @return [Boolean] - # Returns true when {#path} exists on disk. + # Returns true when {#path} exists on disk def path_exist? File.exist? File.expand_path(path) end ## # @return [Integer] - # Returns the number of open tasks a project has. + # Returns the number of open tasks a project has def open_task_count @open_task_count ||= Twenty::Task .where(project_id: id) diff --git a/server/lib/twenty/server/rack/graphql.rb b/server/lib/twenty/server/rack/graphql.rb index e15f350..9242173 100644 --- a/server/lib/twenty/server/rack/graphql.rb +++ b/server/lib/twenty/server/rack/graphql.rb @@ -4,13 +4,13 @@ module Twenty::Rack module GraphQL ## # Extends {Server::Dir Server::Dir} (a static file - # Rack application) with a /graphql endpoint. + # Rack application) with a /graphql endpoint # # @param [Hash] env - # Environment hash. + # Environment hash # # @return [Array] - # Returns a response. + # Returns a response def call(env) req = Rack::Request.new(env) if req.post? &&