lib/flex_station_data/concerns/service.rb in flex-station-data-1.0.0 vs lib/flex_station_data/concerns/service.rb in flex-station-data-1.0.1
- old
+ new
@@ -1,23 +1,7 @@
-require "active_support/concern"
+require_relative "callable"
module FlexStationData
module Concerns
- module Service
- extend ActiveSupport::Concern
-
- def to_proc
- Proc.new(&method(:call))
- end
-
- class_methods do
- def call(*args, &block)
- new(*args).call(&block)
- end
-
- def to_proc
- Proc.new(&method(:call))
- end
- end
- end
+ Service = Callable
end
end