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

View File

@ -44,7 +44,7 @@ module Locomotive
def options_for_content_type
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