Sha256: 2f90b13cf1dd0f9199da2872b3ab72b9f2377d6928dcd72f221cf4968544ec19

Contents?: true

Size: 325 Bytes

Versions: 19

Compression:

Stored size: 325 Bytes

Contents

module Spina
  module CurrentTheme
    extend ActiveSupport::Concern
    
    included do
      before_action :current_theme
      helper_method :current_theme
    end
  
    private
    
      def current_theme
        Spina::Current.theme ||= ::Spina::Theme.find_by_name(current_account.theme)
      end
        
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

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