lib/servitium/context.rb in servitium-1.2.28 vs lib/servitium/context.rb in servitium-1.3.0
- old
+ new
@@ -1,9 +1,14 @@
# frozen_string_literal: true
+require 'active_model/naming'
+require 'active_model/translation'
+
module Servitium
class Context
extend ActiveModel::Callbacks
+ extend ActiveModel::Naming
+ extend ActiveModel::Translation
include Servitium::ContextModel
define_model_callbacks :initialize