thingspeak/app/helpers/channels_helper.rb

12 lines
174 B
Ruby
Raw Normal View History

module ChannelsHelper
include ApplicationHelper
def auth_channels_path
if current_user
'/channels'
else
'/channels/public'
end
end
end