Commit 456b844
authored
Prevent attr_encrypted from making queries on load
`#attribute_instance_methods_as_symbols` can trigger a query when the
schema cache is not loaded.
We only need the results of this method if
`attribute_instance_methods_as_symbols_available?` is true so we move
this inside the check.
Signed-off-by: Bojan Marjanovic <[email protected]>1 parent c2aa160 commit 456b844
1 file changed
+1
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
147 | | - | |
148 | | - | |
149 | 147 | | |
| 148 | + | |
150 | 149 | | |
151 | 150 | | |
152 | 151 | | |
| |||
0 commit comments