mirror of
https://github.com/kaminari/kaminari.git
synced 2022-11-09 13:44:37 -05:00
d0cb1837a1
extract model definitions for each ORM under spec/fake_app, and load them only if target ORM is loaded by this mechanism, all ORMs share a model name "User", and the other specs such as helper specs and request specs will run polymorphically
9 lines
148 B
Ruby
9 lines
148 B
Ruby
class User
|
|
include ::MongoMapper::Document
|
|
key :name, String
|
|
key :age, Integer
|
|
end
|
|
|
|
class User::Address
|
|
include ::MongoMapper::Document
|
|
end
|