We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi guys,
This code in the model would throw the error bellow: def phone=(value) self[:phone] = value.is_a?(String) ? JSON.parse(value) : value end
def phone=(value) self[:phone] = value.is_a?(String) ? JSON.parse(value) : value end
Whereas this one would work:
before_save :set_phone_json ... def set_phone_json self.phone = phone.is_a?(String) ? JSON.parse(phone) : phone end
Any idea why? Would it be worth to add it in the README?
Would throw an error:
{"log":"[4e1d2e46-1a56-40a5-8e02-5ddcf8c4a826] ActiveModel::UnknownAttributeError (unknown attribute 'phone' for Customer.):\n","stream":"stdout","time":"2023-05-31T14:23:40.382174213Z"} {"log":"[4e1d2e46-1a56-40a5-8e02-5ddcf8c4a826] activemodel (6.1.7) lib/active_model/attribute_assignment.rb:51:in _assign_attribute'\n","stream":"stdout","time":"2023-05-31T14:23:40.382183584Z"} {"log":"[4e1d2e46-1a56-40a5-8e02-5ddcf8c4a826] activerecord (6.1.7) lib/active_record/attribute_assignment.rb:21:in block in _assign_attributes'\n","stream":"stdout","time":"2023-05-31T14:23:40.382187467Z"} {"log":"[4e1d2e46-1a56-40a5-8e02-5ddcf8c4a826] activerecord (6.1.7) lib/active_record/attribute_assignment.rb:13:in each'\n","stream":"stdout","time":"2023-05-31T14:23:40.382191608Z"} {"log":"[4e1d2e46-1a56-40a5-8e02-5ddcf8c4a826] activerecord (6.1.7) lib/active_record/attribute_assignment.rb:13:in _assign_attributes'\n","stream":"stdout","time":"2023-05-31T14:23:40.382195366Z"} {"log":"[4e1d2e46-1a56-40a5-8e02-5ddcf8c4a826] activemodel (6.1.7) lib/active_model/attribute_assignment.rb:34:in assign_attributes'\n","stream":"stdout","time":"2023-05-31T14:23:40.382198982Z"} {"log":"[4e1d2e46-1a56-40a5-8e02-5ddcf8c4a826] activerecord (6.1.7) lib/active_record/persistence.rb:627:in block in update'\n","stream":"stdout","time":"2023-05-31T14:23:40.382202526Z"} {"log":"[4e1d2e46-1a56-40a5-8e02-5ddcf8c4a826] activerecord (6.1.7) lib/active_record/transactions.rb:354:in block in with_transaction_returning_status'\n","stream":"stdout","time":"2023-05-31T14:23:40.38220660 6Z"} {"log":"[4e1d2e46-1a56-40a5-8e02-5ddcf8c4a826] activerecord (6.1.7) lib/active_record/connection_adapters/abstract/database_statements.rb:320:in block in transaction'\n","stream":"stdout","time":"2023-05-31T14: 23:40.382210406Z"} {"log":"[4e1d2e46-1a56-40a5-8e02-5ddcf8c4a826] activerecord (6.1.7) lib/active_record/connection_adapters/abstract/transaction.rb:319:in block in within_new_transaction'\n","stream":"stdout","time":"2023-05-31T 14:23:40.382214063Z"} {"log":"[4e1d2e46-1a56-40a5-8e02-5ddcf8c4a826] activesupport (6.1.7) lib/active_support/concurrency/load_interlock_aware_monitor.rb:26:in block (2 levels) in synchronize'\n","stream":"stdout","time":"2023-05-31 T14:23:40.382217697Z"} {"log":"[4e1d2e46-1a56-40a5-8e02-5ddcf8c4a826] activesupport (6.1.7) lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in handle_interrupt'\n","stream":"stdout","time":"2023-05-31T14:23:40.38222 1448Z"} {"log":"[4e1d2e46-1a56-40a5-8e02-5ddcf8c4a826] activesupport (6.1.7) lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in block in synchronize'\n","stream":"stdout","time":"2023-05-31T14:23:40.3 82225036Z"} {"log":"[4e1d2e46-1a56-40a5-8e02-5ddcf8c4a826] activesupport (6.1.7) lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in handle_interrupt'\n","stream":"stdout","time":"2023-05-31T14:23:40.38222 987Z"} {"log":"[4e1d2e46-1a56-40a5-8e02-5ddcf8c4a826] activesupport (6.1.7) lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in synchronize'\n","stream":"stdout","time":"2023-05-31T14:23:40.382233693Z "} {"log":"[4e1d2e46-1a56-40a5-8e02-5ddcf8c4a826] activerecord (6.1.7) lib/active_record/connection_adapters/abstract/transaction.rb:317:in within_new_transaction'\n","stream":"stdout","time":"2023-05-31T14:23:40. 382237281Z"} {"log":"[4e1d2e46-1a56-40a5-8e02-5ddcf8c4a826] activerecord (6.1.7) lib/active_record/connection_adapters/abstract/database_statements.rb:320:in transaction'\n","stream":"stdout","time":"2023-05-31T14:23:40.382 27025Z"} {"log":"[4e1d2e46-1a56-40a5-8e02-5ddcf8c4a826] activerecord (6.1.7) lib/active_record/transactions.rb:350:in with_transaction_returning_status'\n","stream":"stdout","time":"2023-05-31T14:23:40.382274126Z"} {"log":"[4e1d2e46-1a56-40a5-8e02-5ddcf8c4a826] activerecord (6.1.7) lib/active_record/persistence.rb:626:in update'\n","stream":"stdout","time":"2023-05-31T14:23:40.382277727Z"} {"log":"[4e1d2e46-1a56-40a5-8e02-5ddcf8c4a826] administrate (0.18.0) app/controllers/administrate/application_controller.rb:59:in update'\n","stream":"stdout","time":"2023-05-31T14:23:40.382281364Z"} {"log":"[4e1d2e46-1a56-40a5-8e02-5ddcf8c4a826] actionpack (6.1.7) lib/action_controller/metal/basic_implicit_render.rb:6:in send_action'\n","stream":"stdout","time":"2023-05-31T14:23:40.382284973Z"} {"log":"[4e1d2e46-1a56-40a5-8e02-5ddcf8c4a826] actionpack (6.1.7) lib/abstract_controller/base.rb:228:in process_action'\n","stream":"stdout","time":"2023-05-31T14:23:40.382288552Z"} {"log":"[4e1d2e46-1a56-40a5-8e02-5ddcf8c4a826] actionpack (6.1.7) lib/action_controller/metal/rendering.rb:30:in process_action'\n","stream":"stdout","time":"2023-05-31T14:23:40.382292105Z"} {"log":"[4e1d2e46-1a56-40a5-8e02-5ddcf8c4a826] actionpack (6.1.7) lib/abstract_controller/callbacks.rb:42:in block in process_action'\n","stream":"stdout","time":"2023-05-31T14:23:40.382295647Z"} {"log":"[4e1d2e46-1a56-40a5-8e02-5ddcf8c4a826] activesupport (6.1.7) lib/active_support/callbacks.rb:117:in block in run_callbacks'\n","stream":"stdout","time":"2023-05-31T14:23:40.382299221Z"} {"log":"[4e1d2e46-1a56-40a5-8e02-5ddcf8c4a826] audited (5.0.2) lib/audited/sweeper.rb:16:in around'\n","stream":"stdout","time":"2023-05-31T14:23:40.382302781Z"} {"log":"[4e1d2e46-1a56-40a5-8e02-5ddcf8c4a826] activesupport (6.1.7) lib/active_support/callbacks.rb:126:in block in run_callbacks'\n","stream":"stdout","time":"2023-05-31T14:23:40.382306295Z"} {"log":"[4e1d2e46-1a56-40a5-8e02-5ddcf8c4a826] audited (5.0.2) lib/audited/sweeper.rb:16:in around'\n","stream":"stdout","time":"2023-05-31T14:23:40.382309967Z"} {"log":"[4e1d2e46-1a56-40a5-8e02-5ddcf8c4a826] activesupport (6.1.7) lib/active_support/callbacks.rb:126:in block in run_callbacks'\n","stream":"stdout","time":"2023-05-31T14:23:40.382313537Z"} {"log":"[4e1d2e46-1a56-40a5-8e02-5ddcf8c4a826] actiontext (6.1.7) lib/action_text/rendering.rb:20:in with_renderer'\n","stream":"stdout","time":"2023-05-31T14:23:40.382317089Z"} {"log":"[4e1d2e46-1a56-40a5-8e02-5ddcf8c4a826] actiontext (6.1.7) lib/action_text/engine.rb:59:in block (4 levels) in \u003cclass:Engine\u003e'\n","stream":"stdout","time":"2023-05-31T14:23:40.382320917Z"} {"log":"[4e1d2e46-1a56-40a5-8e02-5ddcf8c4a826] activesupport (6.1.7) lib/active_support/callbacks.rb:126:in instance_exec'\n","stream":"stdout","time":"2023-05-31T14:23:40.382325159Z"} {"log":"[4e1d2e46-1a56-40a5-8e02-5ddcf8c4a826] activesupport (6.1.7) lib/active_support/callbacks.rb:126:in block in run_callbacks'\n","stream":"stdout","time":"2023-05-31T14:23:40.38232873Z"} {"log":"[4e1d2e46-1a56-40a5-8e02-5ddcf8c4a826] activesupport (6.1.7) lib/active_support/callbacks.rb:126:in block in run_callbacks'\n","stream":"stdout","time":"2023-05-31T14:23:40.382306295Z"} {"log":"[4e1d2e46-1a56-40a5-8e02-5ddcf8c4a826] audited (5.0.2) lib/audited/sweeper.rb:16:in around'\n","stream":"stdout","time":"2023-05-31T14:23:40.382309967Z"} {"log":"[4e1d2e46-1a56-40a5-8e02-5ddcf8c4a826] activesupport (6.1.7) lib/active_support/callbacks.rb:126:in block in run_callbacks'\n","stream":"stdout","time":"2023-05-31T14:23:40.382313537Z"} {"log":"[4e1d2e46-1a56-40a5-8e02-5ddcf8c4a826] actiontext (6.1.7) lib/action_text/rendering.rb:20:in with_renderer'\n","stream":"stdout","time":"2023-05-31T14:23:40.382317089Z"} {"log":"[4e1d2e46-1a56-40a5-8e02-5ddcf8c4a826] actiontext (6.1.7) lib/action_text/engine.rb:59:in block (4 levels) in \u003cclass:Engine\u003e'\n","stream":"stdout","time":"2023-05-31T14:23:40.382320917Z"} {"log":"[4e1d2e46-1a56-40a5-8e02-5ddcf8c4a826] activesupport (6.1.7) lib/active_support/callbacks.rb:126:in instance_exec'\n","stream":"stdout","time":"2023-05-31T14:23:40.382325159Z"} {"log":"[4e1d2e46-1a56-40a5-8e02-5ddcf8c4a826] activesupport (6.1.7) lib/active_support/callbacks.rb:126:in block in run_callbacks'\n","stream":"stdout","time":"2023-05-31T14:23:40.38232873Z"} {"log":"[4e1d2e46-1a56-40a5-8e02-5ddcf8c4a826] activesupport (6.1.7) lib/active_support/callbacks.rb:137:in run_callbacks'\n","stream":"stdout","time":"2023-05-31T14:23:40.382332295Z"} {"log":"[4e1d2e46-1a56-40a5-8e02-5ddcf8c4a826] actionpack (6.1.7) lib/abstract_controller/callbacks.rb:41:in process_action'\n","stream":"stdout","time":"2023-05-31T14:23:40.382335823Z"} {"log":"[4e1d2e46-1a56-40a5-8e02-5ddcf8c4a826] actionpack (6.1.7) lib/action_controller/metal/rescue.rb:22:in process_action'\n","stream":"stdout","time":"2023-05-31T14:23:40.382339488Z"} {"log":"[4e1d2e46-1a56-40a5-8e02-5ddcf8c4a826] actionpack (6.1.7) lib/action_controller/metal/instrumentation.rb:34:in block in process_action'\n","stream":"stdout","time":"2023-05-31T14:23:40.382343058Z"} {"log":"[4e1d2e46-1a56-40a5-8e02-5ddcf8c4a826] activesupport (6.1.7) lib/active_support/notifications.rb:203:in block in instrument'\n","stream":"stdout","time":"2023-05-31T14:23:40.382351313Z"} {"log":"[4e1d2e46-1a56-40a5-8e02-5ddcf8c4a826] activesupport (6.1.7) lib/active_support/notifications/instrumenter.rb:24:in instrument'\n","stream":"stdout","time":"2023-05-31T14:23:40.382355129Z"} {"log":"[4e1d2e46-1a56-40a5-8e02-5ddcf8c4a826] sentry-rails (5.4.2) lib/sentry/rails/tracing.rb:54:in instrument'\n","stream":"stdout","time":"2023-05-31T14:23:40.382358697Z"} {"log":"[4e1d2e46-1a56-40a5-8e02-5ddcf8c4a826] activesupport (6.1.7) lib/active_support/notifications.rb:203:in instrument'\n","stream":"stdout","time":"2023-05-31T14:23:40.382362291Z"} {"log":"[4e1d2e46-1a56-40a5-8e02-5ddcf8c4a826] actionpack (6.1.7) lib/action_controller/metal/instrumentation.rb:33:in process_action'\n","stream":"stdout","time":"2023-05-31T14:23:40.382365899Z"} {"log":"[4e1d2e46-1a56-40a5-8e02-5ddcf8c4a826] actionpack (6.1.7) lib/action_controller/metal/params_wrapper.rb:249:in process_action'\n","stream":"stdout","time":"2023-05-31T14:23:40.382369456Z"} {"log":"[4e1d2e46-1a56-40a5-8e02-5ddcf8c4a826] activerecord (6.1.7) lib/active_record/railties/controller_runtime.rb:27:in process_action'\n","stream":"stdout","time":"2023-05-31T14:23:40.38237313Z"} {"log":"[4e1d2e46-1a56-40a5-8e02-5ddcf8c4a826] actionpack (6.1.7) lib/abstract_controller/base.rb:165:in process'\n","stream":"stdout","time":"2023-05-31T14:23:40.382376734Z"} {"log":"[4e1d2e46-1a56-40a5-8e02-5ddcf8c4a826] actionview (6.1.7) lib/action_view/rendering.rb:39:in process'\n","stream":"stdout","time":"2023-05-31T14:23:40.382380251Z"} {"log":"[4e1d2e46-1a56-40a5-8e02-5ddcf8c4a826] actionpack (6.1.7) lib/action_controller/metal.rb:190:in dispatch'\n","stream":"stdout","time":"2023-05-31T14:23:40.382383772Z"} {"log":"[4e1d2e46-1a56-40a5-8e02-5ddcf8c4a826] actionpack (6.1.7) lib/action_controller/metal.rb:254:in dispatch'\n","stream":"stdout","time":"2023-05-31T14:23:40.382387606Z"} {"log":"[4e1d2e46-1a56-40a5-8e02-5ddcf8c4a826] actionpack (6.1.7) lib/action_dispatch/routing/route_set.rb:50:in dispatch'\n","stream":"stdout","time":"2023-05-31T14:23:40.382391205Z"} {"log":"[4e1d2e46-1a56-40a5-8e02-5ddcf8c4a826] actionpack (6.1.7) lib/action_dispatch/routing/route_set.rb:33:in serve'\n","stream":"stdout","time":"2023-05-31T14:23:40.382394823Z"} {"log":"[4e1d2e46-1a56-40a5-8e02-5ddcf8c4a826] actionpack (6.1.7) lib/action_dispatch/journey/router.rb:50:in block in serve'\n","stream":"stdout","time":"2023-05-31T14:23:40.382398345Z"} {"log":"[4e1d2e46-1a56-40a5-8e02-5ddcf8c4a826] actionpack (6.1.7) lib/action_dispatch/journey/router.rb:32:in each'\n","stream":"stdout","time":"2023-05-31T14:23:40.382402022Z"} {"log":"[4e1d2e46-1a56-40a5-8e02-5ddcf8c4a826] actionpack (6.1.7) lib/action_dispatch/journey/router.rb:32:in serve'\n","stream":"stdout","time":"2023-05-31T14:23:40.38240554Z"} {"log":"[4e1d2e46-1a56-40a5-8e02-5ddcf8c4a826] actionpack (6.1.7) lib/action_dispatch/routing/route_set.rb:842:in call'\n","stream":"stdout","time":"2023-05-31T14:23:40.382409066Z"} {"log":"[4e1d2e46-1a56-40a5-8e02-5ddcf8c4a826] rswag-ui (2.6.0) lib/rswag/ui/basic_auth.rb:12:in call'\n","stream":"stdout","time":"2023-05-31T14:23:40.382412619Z"} {"log":"[4e1d2e46-1a56-40a5-8e02-5ddcf8c4a826] warden (1.2.9) lib/warden/manager.rb:36:in block in call'\n","stream":"stdout","time":"2023-05-31T14:23:40.38241609Z"} {"log":"[4e1d2e46-1a56-40a5-8e02-5ddcf8c4a826] warden (1.2.9) lib/warden/manager.rb:34:in catch'\n","stream":"stdout","time":"2023-05-31T14:23:40.382419632Z"} {"log":"[4e1d2e46-1a56-40a5-8e02-5ddcf8c4a826] warden (1.2.9) lib/warden/manager.rb:34:in call'\n","stream":"stdout","time":"2023-05-31T14:23:40.382423144Z"} {"log":"[4e1d2e46-1a56-40a5-8e02-5ddcf8c4a826] rack (2.2.4) lib/rack/tempfile_reaper.rb:15:in call'\n","stream":"stdout","time":"2023-05-31T14:23:40.382426662Z"} {"log":"[4e1d2e46-1a56-40a5-8e02-5ddcf8c4a826] rack (2.2.4) lib/rack/etag.rb:27:in call'\n","stream":"stdout","time":"2023-05-31T14:23:40.382434269Z"} {"log":"[4e1d2e46-1a56-40a5-8e02-5ddcf8c4a826] rack (2.2.4) lib/rack/conditional_get.rb:40:in call'\n","stream":"stdout","time":"2023-05-31T14:23:40.38243793Z"} {"log":"[4e1d2e46-1a56-40a5-8e02-5ddcf8c4a826] rack (2.2.4) lib/rack/head.rb:12:in call'\n","stream":"stdout","time":"2023-05-31T14:23:40.382441453Z"} {"log":"[4e1d2e46-1a56-40a5-8e02-5ddcf8c4a826] actionpack (6.1.7) lib/action_dispatch/http/permissions_policy.rb:22:in call'\n","stream":"stdout","time":"2023-05-31T14:23:40.382444951Z"} {"log":"[4e1d2e46-1a56-40a5-8e02-5ddcf8c4a826] actionpack (6.1.7) lib/action_dispatch/http/content_security_policy.rb:19:in call'\n","stream":"stdout","time":"2023-05-31T14:23:40.382448517Z"} {"log":"[4e1d2e46-1a56-40a5-8e02-5ddcf8c4a826] rack (2.2.4) lib/rack/session/abstract/id.rb:266:in context'\n","stream":"stdout","time":"2023-05-31T14:23:40.382452074Z"} {"log":"[4e1d2e46-1a56-40a5-8e02-5ddcf8c4a826] rack (2.2.4) lib/rack/session/abstract/id.rb:260:in call'\n","stream":"stdout","time":"2023-05-31T14:23:40.38245567Z"} {"log":"[4e1d2e46-1a56-40a5-8e02-5ddcf8c4a826] actionpack (6.1.7) lib/action_dispatch/middleware/cookies.rb:689:in call'\n","stream":"stdout","time":"2023-05-31T14:23:40.382460024Z"} {"log":"[4e1d2e46-1a56-40a5-8e02-5ddcf8c4a826] actionpack (6.1.7) lib/action_dispatch/middleware/callbacks.rb:27:in block in call'\n","stream":"stdout","time":"2023-05-31T14:23:40.382470182Z"} {"log":"[4e1d2e46-1a56-40a5-8e02-5ddcf8c4a826] activesupport (6.1.7) lib/active_support/callbacks.rb:98:in run_callbacks'\n","stream":"stdout","time":"2023-05-31T14:23:40.382476423Z"} {"log":"[4e1d2e46-1a56-40a5-8e02-5ddcf8c4a826] actionpack (6.1.7) lib/action_dispatch/middleware/callbacks.rb:26:in call'\n","stream":"stdout","time":"2023-05-31T14:23:40.382481478Z"} {"log":"[4e1d2e46-1a56-40a5-8e02-5ddcf8c4a826] actionpack (6.1.7) lib/action_dispatch/middleware/actionable_exceptions.rb:18:in call'\n","stream":"stdout","time":"2023-05-31T14:23:40.382486499Z"} {"log":"[4e1d2e46-1a56-40a5-8e02-5ddcf8c4a826] sentry-rails (5.4.2) lib/sentry/rails/rescued_exception_interceptor.rb:12:in call'\n","stream":"stdout","time":"2023-05-31T14:23:40.38249139Z"} {"log":"[4e1d2e46-1a56-40a5-8e02-5ddcf8c4a826] actionpack (6.1.7) lib/action_dispatch/middleware/debug_exceptions.rb:29:in call'\n","stream":"stdout","time":"2023-05-31T14:23:40.38249622Z"} {"log":"[4e1d2e46-1a56-40a5-8e02-5ddcf8c4a826] sentry-ruby (5.4.2) lib/sentry/rack/capture_exceptions.rb:28:in block (2 levels) in call'\n","stream":"stdout","time":"2023-05-31T14:23:40.382501457Z"} {"log":"[4e1d2e46-1a56-40a5-8e02-5ddcf8c4a826] sentry-ruby (5.4.2) lib/sentry/hub.rb:199:in with_session_tracking'\n","stream":"stdout","time":"2023-05-31T14:23:40.38250647Z"} {"log":"[4e1d2e46-1a56-40a5-8e02-5ddcf8c4a826] sentry-ruby (5.4.2) lib/sentry-ruby.rb:372:in with_session_tracking'\n","stream":"stdout","time":"2023-05-31T14:23:40.382511579Z"} {"log":"[4e1d2e46-1a56-40a5-8e02-5ddcf8c4a826] sentry-ruby (5.4.2) lib/sentry/rack/capture_exceptions.rb:19:in block in call'\n","stream":"stdout","time":"2023-05-31T14:23:40.38251656Z"} {"log":"[4e1d2e46-1a56-40a5-8e02-5ddcf8c4a826] sentry-ruby (5.4.2) lib/sentry/hub.rb:59:in with_scope'\n","stream":"stdout","time":"2023-05-31T14:23:40.382521561Z"} {"log":"[4e1d2e46-1a56-40a5-8e02-5ddcf8c4a826] sentry-ruby (5.4.2) lib/sentry-ruby.rb:352:in with_scope'\n","stream":"stdout","time":"2023-05-31T14:23:40.38252663Z"} {"log":"[4e1d2e46-1a56-40a5-8e02-5ddcf8c4a826] sentry-ruby (5.4.2) lib/sentry/rack/capture_exceptions.rb:18:in call'\n","stream":"stdout","time":"2023-05-31T14:23:40.382531395Z"} {"log":"[4e1d2e46-1a56-40a5-8e02-5ddcf8c4a826] actionpack (6.1.7) lib/action_dispatch/middleware/show_exceptions.rb:33:in call'\n","stream":"stdout","time":"2023-05-31T14:23:40.382535655Z"} {"log":"[4e1d2e46-1a56-40a5-8e02-5ddcf8c4a826] railties (6.1.7) lib/rails/rack/logger.rb:26:in block in call'\n","stream":"stdout","time":"2023-05-31T14:23:40.382555218Z"} {"log":"[4e1d2e46-1a56-40a5-8e02-5ddcf8c4a826] activesupport (6.1.7) lib/active_support/tagged_logging.rb:99:in block in tagged'\n","stream":"stdout","time":"2023-05-31T14:23:40.382559135Z"} {"log":"[4e1d2e46-1a56-40a5-8e02-5ddcf8c4a826] activesupport (6.1.7) lib/active_support/tagged_logging.rb:37:in tagged'\n","stream":"stdout","time":"2023-05-31T14:23:40.382562695Z"} {"log":"[4e1d2e46-1a56-40a5-8e02-5ddcf8c4a826] activesupport (6.1.7) lib/active_support/tagged_logging.rb:99:in tagged'\n","stream":"stdout","time":"2023-05-31T14:23:40.382567147Z"} {"log":"[4e1d2e46-1a56-40a5-8e02-5ddcf8c4a826] railties (6.1.7) lib/rails/rack/logger.rb:26:in call'\n","stream":"stdout","time":"2023-05-31T14:23:40.382570721Z"} {"log":"[4e1d2e46-1a56-40a5-8e02-5ddcf8c4a826] actionpack (6.1.7) lib/action_dispatch/middleware/remote_ip.rb:81:in call'\n","stream":"stdout","time":"2023-05-31T14:23:40.382574231Z"} {"log":"[4e1d2e46-1a56-40a5-8e02-5ddcf8c4a826] actionpack (6.1.7) lib/action_dispatch/middleware/request_id.rb:26:in call'\n","stream":"stdout","time":"2023-05-31T14:23:40.382577768Z"} {"log":"[4e1d2e46-1a56-40a5-8e02-5ddcf8c4a826] rack (2.2.4) lib/rack/method_override.rb:24:in call'\n","stream":"stdout","time":"2023-05-31T14:23:40.382581331Z"} {"log":"[4e1d2e46-1a56-40a5-8e02-5ddcf8c4a826] rack (2.2.4) lib/rack/runtime.rb:22:in call'\n","stream":"stdout","time":"2023-05-31T14:23:40.382584836Z"} {"log":"[4e1d2e46-1a56-40a5-8e02-5ddcf8c4a826] activesupport (6.1.7) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in call'\n","stream":"stdout","time":"2023-05-31T14:23:40.382588476Z"} {"log":"[4e1d2e46-1a56-40a5-8e02-5ddcf8c4a826] actionpack (6.1.7) lib/action_dispatch/middleware/executor.rb:14:in call'\n","stream":"stdout","time":"2023-05-31T14:23:40.382592085Z"} {"log":"[4e1d2e46-1a56-40a5-8e02-5ddcf8c4a826] actionpack (6.1.7) lib/action_dispatch/middleware/static.rb:24:in call'\n","stream":"stdout","time":"2023-05-31T14:23:40.382595689Z"} {"log":"[4e1d2e46-1a56-40a5-8e02-5ddcf8c4a826] rack (2.2.4) lib/rack/sendfile.rb:110:in call'\n","stream":"stdout","time":"2023-05-31T14:23:40.38259924Z"} {"log":"[4e1d2e46-1a56-40a5-8e02-5ddcf8c4a826] actionpack (6.1.7) lib/action_dispatch/middleware/host_authorization.rb:142:in call'\n","stream":"stdout","time":"2023-05-31T14:23:40.382602752Z"} {"log":"[4e1d2e46-1a56-40a5-8e02-5ddcf8c4a826] rack-cors (1.1.1) lib/rack/cors.rb:100:in call'\n","stream":"stdout","time":"2023-05-31T14:23:40.382606326Z"} {"log":"[4e1d2e46-1a56-40a5-8e02-5ddcf8c4a826] railties (6.1.7) lib/rails/engine.rb:539:in call'\n","stream":"stdout","time":"2023-05-31T14:23:40.382609846Z"} {"log":"[4e1d2e46-1a56-40a5-8e02-5ddcf8c4a826] puma (5.6.5) lib/puma/configuration.rb:252:in call'\n","stream":"stdout","time":"2023-05-31T14:23:40.38261334Z"} {"log":"[4e1d2e46-1a56-40a5-8e02-5ddcf8c4a826] puma (5.6.5) lib/puma/request.rb:77:in block in handle_request'\n","stream":"stdout","time":"2023-05-31T14:23:40.382616979Z"} {"log":"[4e1d2e46-1a56-40a5-8e02-5ddcf8c4a826] puma (5.6.5) lib/puma/thread_pool.rb:340:in with_force_shutdown'\n","stream":"stdout","time":"2023-05-31T14:23:40.382620481Z"} {"log":"[4e1d2e46-1a56-40a5-8e02-5ddcf8c4a826] puma (5.6.5) lib/puma/request.rb:76:in handle_request'\n","stream":"stdout","time":"2023-05-31T14:23:40.382624004Z"} {"log":"[4e1d2e46-1a56-40a5-8e02-5ddcf8c4a826] puma (5.6.5) lib/puma/server.rb:443:in process_client'\n","stream":"stdout","time":"2023-05-31T14:23:40.382627509Z"} {"log":"[4e1d2e46-1a56-40a5-8e02-5ddcf8c4a826] puma (5.6.5) lib/puma/thread_pool.rb:147:in block in spawn_thread'\n","stream":"stdout","time":"2023-05-31T14:23:40.382631024Z"} {"log":"I, [2023-05-31T14:23:40.403997 #1] INFO -- sentry: [Transport] Sending envelope with items [event, client_report] eb298f35ff07484ea74afefc2b68c71a to Sentry\n","stream":"stdout","time":"2023-05-31T14:23:40.40425645Z"} {"log":"E, [2023-05-31T14:23:41.406923 #1] ERROR -- sentry: Event sending failed: execution expired\n","stream":"stdout","time":"2023-05-31T14:23:41.407154165Z"} {"log":"I, [2023-05-31T14:23:41.410229 #1] INFO -- sentry: Unreported Event: ActiveModel::UnknownAttributeError: unknown attribute 'phone' for Customer.\n","stream":"stdout","time":"2023-05-31T14:23:41.410481629Z"}
block in serve'\n","stream":"stdout","time":"2023-05-31T14:23:40.382398345Z"} {"log":"[4e1d2e46-1a56-40a5-8e02-5ddcf8c4a826] actionpack (6.1.7) lib/action_dispatch/journey/router.rb:32:in each'\n","stream":"stdout","time":"2023-05-31T14:23:40.382402022Z"} {"log":"[4e1d2e46-1a56-40a5-8e02-5ddcf8c4a826] actionpack (6.1.7) lib/action_dispatch/journey/router.rb:32:in serve'\n","stream":"stdout","time":"2023-05-31T14:23:40.38240554Z"} {"log":"[4e1d2e46-1a56-40a5-8e02-5ddcf8c4a826] actionpack (6.1.7) lib/action_dispatch/routing/route_set.rb:842:in call'\n","stream":"stdout","time":"2023-05-31T14:23:40.382409066Z"} {"log":"[4e1d2e46-1a56-40a5-8e02-5ddcf8c4a826] rswag-ui (2.6.0) lib/rswag/ui/basic_auth.rb:12:in call'\n","stream":"stdout","time":"2023-05-31T14:23:40.382412619Z"} {"log":"[4e1d2e46-1a56-40a5-8e02-5ddcf8c4a826] warden (1.2.9) lib/warden/manager.rb:36:in
call'\n","stream":"stdout","time":"2023-05-31T14:23:40.382434269Z"} {"log":"[4e1d2e46-1a56-40a5-8e02-5ddcf8c4a826] rack (2.2.4) lib/rack/conditional_get.rb:40:in call'\n","stream":"stdout","time":"2023-05-31T14:23:40.38243793Z"} {"log":"[4e1d2e46-1a56-40a5-8e02-5ddcf8c4a826] rack (2.2.4) lib/rack/head.rb:12:in
call'\n","stream":"stdout","time":"2023-05-31T14:23:40.382448517Z"} {"log":"[4e1d2e46-1a56-40a5-8e02-5ddcf8c4a826] rack (2.2.4) lib/rack/session/abstract/id.rb:266:in context'\n","stream":"stdout","time":"2023-05-31T14:23:40.382452074Z"} {"log":"[4e1d2e46-1a56-40a5-8e02-5ddcf8c4a826] rack (2.2.4) lib/rack/session/abstract/id.rb:260:in call'\n","stream":"stdout","time":"2023-05-31T14:23:40.38245567Z"} {"log":"[4e1d2e46-1a56-40a5-8e02-5ddcf8c4a826] actionpack (6.1.7) lib/action_dispatch/middleware/cookies.rb:689:in call'\n","stream":"stdout","time":"2023-05-31T14:23:40.382460024Z"} {"log":"[4e1d2e46-1a56-40a5-8e02-5ddcf8c4a826] actionpack (6.1.7) lib/action_dispatch/middleware/callbacks.rb:27:in block in call'\n","stream":"stdout","time":"2023-05-31T14:23:40.382470182Z"} {"log":"[4e1d2e46-1a56-40a5-8e02-5ddcf8c4a826] activesupport (6.1.7) lib/active_support/callbacks.rb:98:in run_callbacks'\n","stream":"stdout","time":"2023-05-31T14:23:40.382476423Z"} {"log":"[4e1d2e46-1a56-40a5-8e02-5ddcf8c4a826] actionpack (6.1.7) lib/action_dispatch/middleware/callbacks.rb:26:in call'\n","stream":"stdout","time":"2023-05-31T14:23:40.382481478Z"} {"log":"[4e1d2e46-1a56-40a5-8e02-5ddcf8c4a826] actionpack (6.1.7) lib/action_dispatch/middleware/actionable_exceptions.rb:18:in
call'\n","stream":"stdout","time":"2023-05-31T14:23:40.38249622Z"} {"log":"[4e1d2e46-1a56-40a5-8e02-5ddcf8c4a826] sentry-ruby (5.4.2) lib/sentry/rack/capture_exceptions.rb:28:in
block in call'\n","stream":"stdout","time":"2023-05-31T14:23:40.38251656Z"} {"log":"[4e1d2e46-1a56-40a5-8e02-5ddcf8c4a826] sentry-ruby (5.4.2) lib/sentry/hub.rb:59:in with_scope'\n","stream":"stdout","time":"2023-05-31T14:23:40.382521561Z"} {"log":"[4e1d2e46-1a56-40a5-8e02-5ddcf8c4a826] sentry-ruby (5.4.2) lib/sentry-ruby.rb:352:in with_scope'\n","stream":"stdout","time":"2023-05-31T14:23:40.38252663Z"} {"log":"[4e1d2e46-1a56-40a5-8e02-5ddcf8c4a826] sentry-ruby (5.4.2) lib/sentry/rack/capture_exceptions.rb:18:in call'\n","stream":"stdout","time":"2023-05-31T14:23:40.382531395Z"} {"log":"[4e1d2e46-1a56-40a5-8e02-5ddcf8c4a826] actionpack (6.1.7) lib/action_dispatch/middleware/show_exceptions.rb:33:in
block in call'\n","stream":"stdout","time":"2023-05-31T14:23:40.382555218Z"} {"log":"[4e1d2e46-1a56-40a5-8e02-5ddcf8c4a826] activesupport (6.1.7) lib/active_support/tagged_logging.rb:99:in
tagged'\n","stream":"stdout","time":"2023-05-31T14:23:40.382562695Z"} {"log":"[4e1d2e46-1a56-40a5-8e02-5ddcf8c4a826] activesupport (6.1.7) lib/active_support/tagged_logging.rb:99:in
call'\n","stream":"stdout","time":"2023-05-31T14:23:40.382570721Z"} {"log":"[4e1d2e46-1a56-40a5-8e02-5ddcf8c4a826] actionpack (6.1.7) lib/action_dispatch/middleware/remote_ip.rb:81:in
call'\n","stream":"stdout","time":"2023-05-31T14:23:40.382577768Z"} {"log":"[4e1d2e46-1a56-40a5-8e02-5ddcf8c4a826] rack (2.2.4) lib/rack/method_override.rb:24:in
call'\n","stream":"stdout","time":"2023-05-31T14:23:40.382584836Z"} {"log":"[4e1d2e46-1a56-40a5-8e02-5ddcf8c4a826] activesupport (6.1.7) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in
call'\n","stream":"stdout","time":"2023-05-31T14:23:40.382592085Z"} {"log":"[4e1d2e46-1a56-40a5-8e02-5ddcf8c4a826] actionpack (6.1.7) lib/action_dispatch/middleware/static.rb:24:in
call'\n","stream":"stdout","time":"2023-05-31T14:23:40.38259924Z"} {"log":"[4e1d2e46-1a56-40a5-8e02-5ddcf8c4a826] actionpack (6.1.7) lib/action_dispatch/middleware/host_authorization.rb:142:in
call'\n","stream":"stdout","time":"2023-05-31T14:23:40.382606326Z"} {"log":"[4e1d2e46-1a56-40a5-8e02-5ddcf8c4a826] railties (6.1.7) lib/rails/engine.rb:539:in
call'\n","stream":"stdout","time":"2023-05-31T14:23:40.38261334Z"} {"log":"[4e1d2e46-1a56-40a5-8e02-5ddcf8c4a826] puma (5.6.5) lib/puma/request.rb:77:in
with_force_shutdown'\n","stream":"stdout","time":"2023-05-31T14:23:40.382620481Z"} {"log":"[4e1d2e46-1a56-40a5-8e02-5ddcf8c4a826] puma (5.6.5) lib/puma/request.rb:76:in
process_client'\n","stream":"stdout","time":"2023-05-31T14:23:40.382627509Z"} {"log":"[4e1d2e46-1a56-40a5-8e02-5ddcf8c4a826] puma (5.6.5) lib/puma/thread_pool.rb:147:in
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi guys,
This code in the model would throw the error bellow:
def phone=(value) self[:phone] = value.is_a?(String) ? JSON.parse(value) : value end
Whereas this one would work:
Any idea why? Would it be worth to add it in the README?
Would throw an error:
The text was updated successfully, but these errors were encountered: