Skip to content

Instantly share code, notes, and snippets.

@jlsuttles
Forked from ehrenmurdick/activities_helper.rb
Created February 27, 2012 22:49
Show Gist options
  • Save jlsuttles/1927689 to your computer and use it in GitHub Desktop.
Save jlsuttles/1927689 to your computer and use it in GitHub Desktop.
activity_sequence
ACTIVITIES = [PersonalValues, PersonActions, SomeOther]
def next_activity(klass)
ACTIVITIES[ACTIVITIES.index(klass) + 1].to_s.underscore.pluralize + "some shit"
end
def prev_activity(klass)
ACTIVITIES[ACTIVITIES.index(klass) - 1].to_s.underscore.pluralize + "some shit"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment