Skip to content

Instantly share code, notes, and snippets.

@igkuz
Last active December 17, 2015 14:39
Show Gist options
  • Save igkuz/5626137 to your computer and use it in GitHub Desktop.
Save igkuz/5626137 to your computer and use it in GitHub Desktop.
class View::ChannelsController < CS::Base::Controller
def initialize(view, api_controller)
@view = view
@api_controller = api_controller
end
def show_channels_list
api_controller.all_channels.on_complete do |models|
@view.show_channels(models)
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment