classroom

https://github.com/education/classroom

Ruby

GitHub Classroom automates repository creation and access control, making it easy for teachers to distribute starter code and collect assignments on GitHub.

Flippable#feature_enabled?

Public: Check if an feature has been enabled for an
actor.

flippable_feature - The Symbol name of the feature.

Example:

  current_user.feature_enabled?(student_identifier)
  # => false

Returns a Boolean.

Source | Google | Stack overflow

Edit

git clone [email protected]:education/classroom.git

cd classroom

open app/models/concerns/flippable.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Flippable-feature_enabled--for-pr


# Commit to git

git add app/models/concerns/flippable.rbgit commit -m "better docs for Flippable#feature_enabled?"


# Open pull request

gem install hub # on a mac you can `brew install hub`

hub fork

git push <your name> -your-name--update-docs-Flippable-feature_enabled--for-pr

hub pull-request


# Celebrate!