Skip to content

Commit

Permalink
2.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
the-teacher committed Sep 6, 2013
1 parent 749a0ec commit c35c453
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/the_role/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module TheRole
VERSION = "2.1.0"
VERSION = "2.1.1"
end
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,8 @@
padding-bottom: 10px;
border-bottom: 1px solid gray;
}
}

.edit_role{
input{ margin: 0; }
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def access_denied

def set_locale
locale = 'en'
langs = %w{ en ru es zh_CN }
langs = %w{ en ru es pl zh_CN }

if params[:locale]
lang = params[:locale]
Expand All @@ -35,5 +35,6 @@ def set_locale
end

I18n.locale = locale
redirect_to(:back) if params[:locale]
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@
\|
= link_to 'zh_CN', '/?locale=zh_CN'
\|
= link_to 'pl', '/?locale=pl'
\|
%b
= t '.current_locale'
= I18n.locale

0 comments on commit c35c453

Please sign in to comment.