Module: EasyModel::ColumnForActiveModel::ClassMethods
- Defined in:
- lib/easy_model/column_for_active_model.rb
Instance Method Summary collapse
-
#easy_model_attribute_names ⇒ Object
(also: #attribute_names)
#column メソッドで定義した属性名.
-
#i18n_scope ⇒ Object
ロケールファイルからルックアップするときのキー.
Instance Method Details
#easy_model_attribute_names ⇒ Object Also known as: attribute_names
#column メソッドで定義した属性名.
戻り値
#column メソッドで定義した属性名 String の配列として返す.
67 68 69 |
# File 'lib/easy_model/column_for_active_model.rb', line 67 def easy_model_attribute_names (@easy_model_attribute_names || []).dup end |
#i18n_scope ⇒ Object
ロケールファイルからルックアップするときのキー.
75 76 77 |
# File 'lib/easy_model/column_for_active_model.rb', line 75 def i18n_scope :easy_model end |