mirror of
https://github.com/drapergem/draper
synced 2023-03-27 23:21:17 -04:00
Only define MongoidPostDecorator when using Mongoid
This commit is contained in:
parent
a239d93288
commit
0a09c096a6
1 changed files with 3 additions and 1 deletions
|
@ -1,2 +1,4 @@
|
|||
class MongoidPostDecorator < Draper::Decorator
|
||||
if defined?(Mongoid)
|
||||
class MongoidPostDecorator < Draper::Decorator
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue