method

freeze

freeze()
public

Clone and freeze the attributes hash such that associations are still accessible, even on destroyed records, but cloned models will not be frozen.