OSDN Git Service

ポイントでフォントサイズを指定
[praisedb/praisedb.git] / app / models / song.rb
index c47e6b4..54db88f 100644 (file)
@@ -4,11 +4,11 @@ class Song < ActiveRecord::Base
   before_save :make_words_for_search
 
   selectable_attr :font_size do
-    entry "0", :xsmall, "25pt"
-    entry "1", :small,  "30pt"
-    entry "2", :middle, "34pt"
-    entry "3", :large,  "39pt"
-    entry "4", :xlarge, "44pt"
+    entry 0, :xsmall, "XSmall", :point => "25pt"
+    entry 1, :small,  "Small",  :point => "30pt"
+    entry 2, :middle, "Middle", :point => "34pt"
+    entry 3, :large,  "Large",  :point => "39pt"
+    entry 4, :xlarge, "XLarge", :point => "44pt"
   end
 
   RUBY_KANJI_HIRA   = %r/([一-龠]+)\(([ぁ-ん]+)\)/