Sha256: 2fdd6017ad2f5c9e786a73ae7f181f63ed1c68e94fa6a4d280134973bb7bd815

Contents?: true

Size: 307 Bytes

Versions: 19

Compression:

Stored size: 307 Bytes

Contents

module Spina
  module CurrentAccount
    extend ActiveSupport::Concern
    
    included do
      before_action :current_account
      helper_method :current_account
    end
  
    private
    
      def current_account
        Spina::Current.account ||= ::Spina::Account.first
      end
        
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
spina-2.11.0 app/controllers/concerns/spina/current_account.rb
spina-2.10.0 app/controllers/concerns/spina/current_account.rb
spina-2.9.1 app/controllers/concerns/spina/current_account.rb
spina-2.9.0 app/controllers/concerns/spina/current_account.rb
spina-2.8.1 app/controllers/concerns/spina/current_account.rb
spina-2.8.0 app/controllers/concerns/spina/current_account.rb
spina-2.7.0 app/controllers/concerns/spina/current_account.rb
spina-2.6.2 app/controllers/concerns/spina/current_account.rb
spina-2.6.1 app/controllers/concerns/spina/current_account.rb
spina-2.6.0 app/controllers/concerns/spina/current_account.rb
spina-2.5.0 app/controllers/concerns/spina/current_account.rb
spina-2.4.0 app/controllers/concerns/spina/current_account.rb
spina-2.3.5 app/controllers/concerns/spina/current_account.rb
spina-2.3.4 app/controllers/concerns/spina/current_account.rb
spina-2.3.3 app/controllers/concerns/spina/current_account.rb
spina-2.3.2 app/controllers/concerns/spina/current_account.rb
spina-2.3.1 app/controllers/concerns/spina/current_account.rb
spina-2.3.0 app/controllers/concerns/spina/current_account.rb
spina-2.2.0 app/controllers/concerns/spina/current_account.rb