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.6.35 app/helpers/account/role_helper.rb
bullet_train-1.6.34 app/helpers/account/role_helper.rb
bullet_train-1.6.33 app/helpers/account/role_helper.rb
bullet_train-1.6.32 app/helpers/account/role_helper.rb
bullet_train-1.6.31 app/helpers/account/role_helper.rb
bullet_train-1.6.30 app/helpers/account/role_helper.rb
bullet_train-1.6.29 app/helpers/account/role_helper.rb
bullet_train-1.6.28 app/helpers/account/role_helper.rb
bullet_train-1.6.27 app/helpers/account/role_helper.rb
bullet_train-1.6.26 app/helpers/account/role_helper.rb
bullet_train-1.6.25 app/helpers/account/role_helper.rb
bullet_train-1.6.24 app/helpers/account/role_helper.rb
bullet_train-1.6.23 app/helpers/account/role_helper.rb
bullet_train-1.6.22 app/helpers/account/role_helper.rb
bullet_train-1.6.21 app/helpers/account/role_helper.rb
bullet_train-1.6.20 app/helpers/account/role_helper.rb
bullet_train-1.6.19 app/helpers/account/role_helper.rb
bullet_train-1.6.18 app/helpers/account/role_helper.rb
bullet_train-1.6.17 app/helpers/account/role_helper.rb
bullet_train-1.6.16 app/helpers/account/role_helper.rb