README.md in unidom-action-1.17.12 vs README.md in unidom-action-1.17.13
- old
+ new
@@ -287,10 +287,18 @@
include Unidom::Common::Concerns::ModelExtension
include Unidom::Action::Concerns::AsSearcherParty
end
+# app/models/your_as_state_subject.rb
+class YourStateSubject < ApplicationRecord
+
+ include Unidom::Common::Concerns::ModelExtension
+ include Unidom::Action::Concerns::AsStateSubject
+
+end
+
# spec/support/unidom_rspec_shared_examples.rb
require 'unidom/action/rspec_shared_examples'
# spec/models/your_acted_spec.rb
describe YourActed, type: :model do
@@ -353,8 +361,19 @@
model_attribtues = {
your_attribute: 'your value'
}
it_behaves_like 'Unidom::Action::Concerns::AsSearcherParty', model_attribtues
+
+end
+```
+# spec/models/your_state_subject_spec.rb
+describe YourStateSubject, type: :model do
+
+ model_attribtues = {
+ your_attribute: 'your value'
+ }
+
+ it_behaves_like 'Unidom::Action::Concerns::AsStateSubject', model_attribtues
end
```