Skip to content

Commit

Permalink
Better naming w/ i18n
Browse files Browse the repository at this point in the history
  • Loading branch information
brianpattison committed Oct 15, 2015
1 parent 411075c commit 7e43067
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 4 additions & 0 deletions config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@

en:
activerecord:
models:
content_block:
one: Content Block
other: Site Content
attributes:
blocky/content_block:
content_key: Unique ID
4 changes: 1 addition & 3 deletions lib/blocky/admin/content_block.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
if defined?(ActiveAdmin)
ActiveAdmin.register Blocky::ContentBlock, as: "Content Block" do
menu label: "Site Content"

ActiveAdmin.register Blocky::ContentBlock, as: "ContentBlock" do
config.sort_order = "description_asc"

controller do
Expand Down

0 comments on commit 7e43067

Please sign in to comment.