Returns the cost factor that will be used if one is not specified when creating a password hash. Defaults to DEFAULT_COST if not set.
| 30 | # Returns the cost factor that will be used if one is not specified when |
| 31 | # creating a password hash. Defaults to DEFAULT_COST if not set. |
| 32 | def self.cost |
| 33 | @cost || DEFAULT_COST |
| 34 | end |
| 35 | |
| 36 | # Set a default cost factor that will be used if one is not specified when |
| 37 | # creating a password hash. |
no outgoing calls
no test coverage detected