Class: Doorkeeper::Models::ExpirationTimeSqlMath::SqlServerExpirationTimeSqlGenerator
- Inherits:
-
ExpirationTimeSqlGenerator
- Object
- ExpirationTimeSqlGenerator
- Doorkeeper::Models::ExpirationTimeSqlMath::SqlServerExpirationTimeSqlGenerator
- Defined in:
- lib/doorkeeper/models/concerns/expiration_time_sql_math.rb
Instance Attribute Summary
Attributes inherited from ExpirationTimeSqlGenerator
Instance Method Summary collapse
Methods inherited from ExpirationTimeSqlGenerator
Constructor Details
This class inherits a constructor from Doorkeeper::Models::ExpirationTimeSqlMath::ExpirationTimeSqlGenerator
Instance Method Details
#generate_sql ⇒ Object
35 36 37 |
# File 'lib/doorkeeper/models/concerns/expiration_time_sql_math.rb', line 35 def generate_sql Arel.sql("DATEADD(second, #{table_name}.expires_in, #{table_name}.created_at) AT TIME ZONE 'UTC'") end |