flat ui assets and mongoid