lib/heimdallr/proxy/record.rb in heimdallr-1.0.0 vs lib/heimdallr/proxy/record.rb in heimdallr-1.0.1
- old
+ new
@@ -250,9 +250,13 @@
record: @record,
options: @options
}.merge(@restrictions.reflection)
end
+ def creatable?
+ @restrictions.can? :create
+ end
+
def modifiable?
@restrictions.can? :update
end
def destroyable?
\ No newline at end of file