lib/riot-mongoid.rb in riot-mongoid-1.1.1 vs lib/riot-mongoid.rb in riot-mongoid-1.1.2
- old
+ new
@@ -1,5 +1,10 @@
require 'riot'
+require 'mongoid'
+
+Mongoid::Field.module_eval do
+ attr_reader :accessible
+end
module RiotMongoid
class HasFieldAssertion < Riot::AssertionMacro
register :has_field
\ No newline at end of file