Skip to content

Commit 2e7cd9e

Browse files
author
Monty Williams
committed
Added warning that running meta_demo.rb can break other things.
1 parent 9b7f01d commit 2e7cd9e

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

meta_demo.rb

+8-2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@
55
# Purpose: Define a simple class that uses ActiveModel::Validations
66
# so WebTools can observe the methods generated by ActiveModel.
77
#
8+
# WARNING: Running WebTools is safe, BUT RUNNING meta_demo.rb IS NOT!!!
9+
# It unsafely persists rubygems, active_model and active_support
10+
# in a state that will have unintended consequences. If you
11+
# run it, you should run "maglev force-reload" afterwards to
12+
# load an empty database.
13+
#
814
# Usage: maglev-ruby -Mcommit meta_demo.rb
915
# or
1016
# rake meta
@@ -21,9 +27,9 @@
2127

2228
class AValidPerson
2329
include ActiveModel::Validations
24-
30+
2531
validates_presence_of :first_name, :last_name
26-
32+
2733
attr_accessor :first_name, :last_name
2834
def initialize(first_name, last_name)
2935
@first_name, @last_name = first_name, last_name

0 commit comments

Comments
 (0)