spec/relaxo/model/model_context.rb in relaxo-model-0.12.1 vs spec/relaxo/model/model_context.rb in relaxo-model-0.13.0

- old
+ new

@@ -1,8 +1,10 @@ require 'relaxo/model' +require 'relaxo/model/properties/bcrypt' + class Invoice class Transaction; end include Relaxo::Model @@ -41,9 +43,10 @@ class User include Relaxo::Model property :email, Attribute[String] property :name + property :password, Attribute[BCrypt::Password] property :intro view :all, :type, index: unique(:email) view :by_name, :type, 'by_name', index: unique(:name)