lib/slack-ruby-bot/commands/base.rb in slack-ruby-bot-0.10.0 vs lib/slack-ruby-bot/commands/base.rb in slack-ruby-bot-0.10.1
- old
+ new
@@ -3,14 +3,14 @@
class Base
include Loggable
class_attribute :routes
class << self
- attr_reader :command_classes
+ attr_accessor :command_classes
def inherited(subclass)
- @command_classes ||= []
- @command_classes << subclass
+ SlackRubyBot::Commands::Base.command_classes ||= []
+ SlackRubyBot::Commands::Base.command_classes << subclass
end
def send_message(client, channel, text, options = {})
logger.warn '[DEPRECATION] `send_message` is deprecated. Please use `client.say` instead.'
if text && !text.length.empty?