Sha256: 1bd63dcda2bae3b9073851ef339a52490586fd933a8ac5c907ea42ecb458c488

Contents?: true

Size: 217 Bytes

Versions: 237

Compression:

Stored size: 217 Bytes

Contents

module Account::RoleHelper
  def role_options_for(object)
    object.class.assignable_roles.map { |role| [role.id, t("#{object.class.to_s.pluralize.underscore}.fields.role_ids.options.#{role.key}.label")] }
  end
end

Version data entries

237 entries across 237 versions & 1 rubygems

Version Path
bullet_train-1.0.66 app/helpers/account/role_helper.rb
bullet_train-1.0.65 app/helpers/account/role_helper.rb
bullet_train-1.0.64 app/helpers/account/role_helper.rb
bullet_train-1.0.63 app/helpers/account/role_helper.rb
bullet_train-1.0.62 app/helpers/account/role_helper.rb
bullet_train-1.0.61 app/helpers/account/role_helper.rb
bullet_train-1.0.60 app/helpers/account/role_helper.rb
bullet_train-1.0.59 app/helpers/account/role_helper.rb
bullet_train-1.0.58 app/helpers/account/role_helper.rb
bullet_train-1.0.57 app/helpers/account/role_helper.rb
bullet_train-1.0.56 app/helpers/account/role_helper.rb
bullet_train-1.0.53 app/helpers/account/role_helper.rb
bullet_train-1.0.52 app/helpers/account/role_helper.rb
bullet_train-1.0.51 app/helpers/account/role_helper.rb
bullet_train-1.0.50 app/helpers/account/role_helper.rb
bullet_train-1.0.49 app/helpers/account/role_helper.rb
bullet_train-1.0.48 app/helpers/account/role_helper.rb
bullet_train-1.0.47 app/helpers/account/role_helper.rb
bullet_train-1.0.46 app/helpers/account/role_helper.rb
bullet_train-1.0.45 app/helpers/account/role_helper.rb