Class: Doorkeeper::Models::ExpirationTimeSqlMath::SqlLiteExpirationTimeSqlGenerator

Inherits:
ExpirationTimeSqlGenerator show all
Defined in:
lib/doorkeeper/models/concerns/expiration_time_sql_math.rb

Instance Attribute Summary

Attributes inherited from ExpirationTimeSqlGenerator

#model

Instance Method Summary collapse

Methods inherited from ExpirationTimeSqlGenerator

#initialize

Constructor Details

This class inherits a constructor from Doorkeeper::Models::ExpirationTimeSqlMath::ExpirationTimeSqlGenerator

Instance Method Details

#generate_sqlObject



29
30
31
# File 'lib/doorkeeper/models/concerns/expiration_time_sql_math.rb', line 29

def generate_sql
  Arel.sql("DATETIME(#{table_name}.created_at, '+' || #{table_name}.expires_in || ' SECONDS')")
end