Refactor app in to its own slice
This commit is contained in:
21
slices/main/views/posts/top_tracks.rb
Normal file
21
slices/main/views/posts/top_tracks.rb
Normal file
@@ -0,0 +1,21 @@
|
||||
module Main
|
||||
module Views
|
||||
module Posts
|
||||
class TopTracks< Main::View
|
||||
config.layout = false
|
||||
|
||||
expose :name do |track:|
|
||||
track.name
|
||||
end
|
||||
|
||||
expose :artist do |track:|
|
||||
track.artist
|
||||
end
|
||||
|
||||
expose :url do |track:|
|
||||
track.url
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
Reference in New Issue
Block a user