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.93 app/helpers/account/role_helper.rb
bullet_train-1.0.92 app/helpers/account/role_helper.rb
bullet_train-1.0.90 app/helpers/account/role_helper.rb
bullet_train-1.0.89 app/helpers/account/role_helper.rb
bullet_train-1.0.88 app/helpers/account/role_helper.rb
bullet_train-1.0.87 app/helpers/account/role_helper.rb
bullet_train-1.0.86 app/helpers/account/role_helper.rb
bullet_train-1.0.85 app/helpers/account/role_helper.rb
bullet_train-1.0.83 app/helpers/account/role_helper.rb
bullet_train-1.0.81 app/helpers/account/role_helper.rb
bullet_train-1.0.79 app/helpers/account/role_helper.rb
bullet_train-1.0.76 app/helpers/account/role_helper.rb
bullet_train-1.0.75 app/helpers/account/role_helper.rb
bullet_train-1.0.74 app/helpers/account/role_helper.rb
bullet_train-1.0.72 app/helpers/account/role_helper.rb
bullet_train-1.0.71 app/helpers/account/role_helper.rb
bullet_train-1.0.70 app/helpers/account/role_helper.rb
bullet_train-1.0.69 app/helpers/account/role_helper.rb
bullet_train-1.0.68 app/helpers/account/role_helper.rb
bullet_train-1.0.67 app/helpers/account/role_helper.rb