README.md in surrounded-0.7.2 vs README.md in surrounded-0.7.3
- old
+ new
@@ -536,9 +536,20 @@
# or define your own method without the `disallow` keyword
def disallow_some_trigger_method?
# whatever conditional code for the instance of the context
end
+
+ # Create shortcuts for triggers as class methods
+ # so you can do ActiviatingAccount.some_trigger_method(activator, account)
+ # This will make all triggers shortcuts.
+ shortcut_triggers
+ # Alterantively, you could implement shortcuts individually:
+ def self.some_trigger_method(activator, account)
+ instance = self.new(activator.account)
+ instance.some_trigger_method
+ end
+
end
```
## Dependencies