Railsç¨ã®gemãæå ã§ä½ã£ã¦ããæã«ã³ã¼ããæ¸ããªãã度ã«Webrickãåèµ·åãã¦gemãèªã¿ãªããã®ã¯é常ã«æéããªã®ã§ãããåé¿ããæ¹æ³ ä¾ãã°exampleã¨ããååã®gemãä½ã£ã¦ãã¦Example::MyClassããªã¯ã¨ã¹ãã®åº¦ã«ãªãã¼ãããããå ´åenviroments/development.rbã«ä»¥ä¸ã追å # requestãæ¥ãå ´åã®callbackãå®ç¾© ActionDispatch::Callbacks.before do # Example::MyClassãå®ç¾©ããã¦ããå ´åã¯åé¤ãã if Object.const_defined?(:Example) if Example.const_defined?(:MyClass) Example.send(:remove_const, :MyClass) end end # example/my_class
{{#tags}}- {{label}}
{{/tags}}