noesya/osuny

View on GitHub
app/models/communication/extranet/with_features.rb

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
module Communication::Extranet::WithFeatures
  extend ActiveSupport::Concern

  included do
    FEATURES = [
      :posts,
      :contacts,
      :documents,
      :alumni,
      :jobs,
    ]
  end

  def has_feature?(identifier)
    public_send "feature_#{identifier}"
  end
end