Sha256: 225a0610bb789215c60ea9962b5abc3f7bff6560dfd6d0cc2bfa8778d756199b

Contents?: true

Size: 193 Bytes

Versions: 42

Compression:

Stored size: 193 Bytes

Contents

module AccountHelper
  def accounts_as_collection(accounts = nil)
    accounts ||= Account.all
    accounts.collect{|account| ["%s - %s" % [account.code, account.title], account.id]}
  end
end

Version data entries

42 entries across 42 versions & 2 rubygems

Version Path
has_accounts_engine-3.0.0.beta15 app/helpers/account_helper.rb
has_accounts_engine-3.0.0.beta14 app/helpers/account_helper.rb
has_accounts_engine-3.0.0.beta13 app/helpers/account_helper.rb
has_accounts_engine-3.0.0.beta12 app/helpers/account_helper.rb
has_accounts_engine-3.0.0.beta11 app/helpers/account_helper.rb
has_accounts_engine-3.0.0.beta10 app/helpers/account_helper.rb
has_accounts_engine-3.0.0.beta9 app/helpers/account_helper.rb
has_accounts_engine-3.0.0.beta8 app/helpers/account_helper.rb
has_accounts_engine-3.0.0.beta7 app/helpers/account_helper.rb
has_accounts_engine-3.0.0.beta6 app/helpers/account_helper.rb
has_accounts_engine-3.0.0.beta5 app/helpers/account_helper.rb
has_accounts_engine-3.0.0.beta4 app/helpers/account_helper.rb
has_accounts_engine-3.0.0.beta3 app/helpers/account_helper.rb
has_accounts_engine-3.0.0.beta2 app/helpers/account_helper.rb
has_accounts_engine-3.0.0.beta1 app/helpers/account_helper.rb
has_accounts_engine-3.0.0.beta0 app/helpers/account_helper.rb
has_accounts_engine-2.0.1 app/helpers/account_helper.rb
has_accounts_engine-2.0.0 app/helpers/account_helper.rb
has_accounts_engine-1.1.2 app/helpers/account_helper.rb
has_accounts_engine-1.1.1 app/helpers/account_helper.rb