Skip to content

Commit

Permalink
Merge pull request SpinaCMS#39 from idl3/theme-select
Browse files Browse the repository at this point in the history
Fixed theme selector to load selected theme instead of first theme SpinaCMS#38
  • Loading branch information
Bram Jetten committed Jun 18, 2015
2 parents b5ebaf0 + a3fed86 commit 23a7d1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/spina/application_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def current_ability
end

def current_theme
@current_theme = ::Spina.themes.first
@current_theme = ::Spina.themes.detect{|theme| theme.name == current_account.theme }
end
helper_method :current_theme

Expand Down

0 comments on commit 23a7d1c

Please sign in to comment.