lib/hanami/console/plugins/slice_readers.rb in hanami-cli-2.0.0.alpha6.1 vs lib/hanami/console/plugins/slice_readers.rb in hanami-cli-2.0.0.alpha7
- old
+ new
@@ -10,11 +10,11 @@
class SliceReaders < Module
# @api private
def initialize(application)
super()
- application.slices.each do |(name, slice)|
- define_method(name) do
+ application.slices.each do |slice|
+ define_method(slice.slice_name) do
slice
end
end
end
end