content types can auto-reference them (in a many_to_many relationship for instance)

This commit is contained in:
Didier Lafforgue 2012-04-26 04:00:46 +02:00
parent 23600edb1f
commit f9a6155c19
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ module Locomotive
def options_for_content_type def options_for_content_type
current_site.content_types.map do |c| current_site.content_types.map do |c|
c != @content_type ? [c.name, c.klass_with_custom_fields(:entries).to_s] : nil [c.name, c.klass_with_custom_fields(:entries).to_s]
end.compact end.compact
end end