Sha256: 1bd63dcda2bae3b9073851ef339a52490586fd933a8ac5c907ea42ecb458c488

Contents?: true

Size: 217 Bytes

Versions: 241

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

241 entries across 241 versions & 1 rubygems

Version Path
bullet_train-1.3.20 app/helpers/account/role_helper.rb
bullet_train-1.3.19 app/helpers/account/role_helper.rb
bullet_train-1.3.18 app/helpers/account/role_helper.rb
bullet_train-1.3.17 app/helpers/account/role_helper.rb
bullet_train-1.3.16 app/helpers/account/role_helper.rb
bullet_train-1.3.15 app/helpers/account/role_helper.rb
bullet_train-1.3.14 app/helpers/account/role_helper.rb
bullet_train-1.3.13 app/helpers/account/role_helper.rb
bullet_train-1.3.12 app/helpers/account/role_helper.rb
bullet_train-1.3.11 app/helpers/account/role_helper.rb
bullet_train-1.3.10 app/helpers/account/role_helper.rb
bullet_train-1.3.9 app/helpers/account/role_helper.rb
bullet_train-1.3.8 app/helpers/account/role_helper.rb
bullet_train-1.3.7 app/helpers/account/role_helper.rb
bullet_train-1.3.6 app/helpers/account/role_helper.rb
bullet_train-1.3.5 app/helpers/account/role_helper.rb
bullet_train-1.3.4 app/helpers/account/role_helper.rb
bullet_train-1.3.3 app/helpers/account/role_helper.rb
bullet_train-1.3.2 app/helpers/account/role_helper.rb
bullet_train-1.3.1 app/helpers/account/role_helper.rb