lib/rails_admin/config/hideable.rb in obitum-rails_admin-0.0.1 vs lib/rails_admin/config/hideable.rb in obitum-rails_admin-0.0.2
- old
+ new
@@ -7,15 +7,15 @@
klass.register_instance_option(:visible?) do
!root.try :excluded?
end
end
- # Reader whether field is hidden.
+ # Reader whether object is hidden.
def hidden?
not visible
end
- # Writer to hide field.
+ # Writer to hide object.
def hide(&block)
visible block ? proc { false == (instance_eval &block) } : false
end
# Writer to show field.