lib/notification_handler/group.rb in notification-handler-1.0.0.beta9 vs lib/notification_handler/group.rb in notification-handler-1.0.0.beta10
- old
+ new
@@ -7,10 +7,10 @@
def initialize name, target_scope
@name = name
@target_scope = target_scope
end
- def find_by_name name
+ def self.find_by_name name
ObjectSpace.each_object(NotificationHandler::Group).select { |group| group.name == name.to_sym }
end
end
end