diff options
author | Fire Demon <firedemon@creature.cafe> | 2020-07-20 03:58:14 -0500 |
---|---|---|
committer | Fire Demon <firedemon@creature.cafe> | 2020-08-30 05:44:01 -0500 |
commit | 3366a957219b15f5ab6f6eabbf5466e1e12082de (patch) | |
tree | 83397d725b7b93070137854e849a0afcc421f553 /app/lib/command_tag/commands.rb | |
parent | 21438b54bdaf3c557ec9ebbc482a2c418d8c64f8 (diff) |
[Feature] Add command tags; add #!edit and #!publish commands for mobile users
Diffstat (limited to 'app/lib/command_tag/commands.rb')
-rw-r--r-- | app/lib/command_tag/commands.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/app/lib/command_tag/commands.rb b/app/lib/command_tag/commands.rb new file mode 100644 index 000000000..0248e6e99 --- /dev/null +++ b/app/lib/command_tag/commands.rb @@ -0,0 +1,8 @@ +# frozen_string_literal: true +module CommandTag::Commands + def self.included(base) + CommandTag::Commands.constants.map(&CommandTag::Commands.method(:const_get)).grep(Module) do |mod| + base.include(mod) + end + end +end |