app/models/simple_admin/entity_field.rb in simple-admin-0.1.2.pre.alpha vs app/models/simple_admin/entity_field.rb in simple-admin-0.2.0.pre.alpha
- old
+ new
@@ -40,11 +40,11 @@
#
# SimpleAdmin::Category
#
# @return [ActiveRecord Class]
#
- # @since 0.1.0
+ # @since 0.1.0-alpha
def association_klass
model_instance = entity.model_klass.new
association_name = name.remove('_id')
model_instance.public_send("build_#{association_name}").class
@@ -52,10 +52,10 @@
# Template path for field
#
# @return [String]
#
- # @since 0.1.0
+ # @since 0.1.0-alpha
def template_path
"#{entity_field_type.template}/#{presentation}"
end
def already_exists?