use strings instead of constants
This commit is contained in:
parent
2f35d3c10e
commit
696d89c45c
2 changed files with 6 additions and 7 deletions
|
@ -27,8 +27,8 @@ end
|
|||
|
||||
class Course < CouchRest::Model
|
||||
key_accessor :title
|
||||
cast :questions, :as => [Question]
|
||||
cast :professor, :as => Person
|
||||
cast :questions, :as => ['Question']
|
||||
cast :professor, :as => 'Person'
|
||||
view_by :title
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue