{"action":"opened","issue":{"url":"https://api.github.com/repos/rhomobile/rhodes/issues/456","labels_url":"https://api.github.com/repos/rhomobile/rhodes/issues/456/labels{/name}","comments_url":"https://api.github.com/repos/rhomobile/rhodes/issues/456/comments","events_url":"https://api.github.com/repos/rhomobile/rhodes/issues/456/events","html_url":"https://github.com/rhomobile/rhodes/issues/456","id":53892830,"number":456,"title":"Rhosimulator reloading on require.  ","user":{"login":"mbauer553","id":10281003,"avatar_url":"https://avatars.githubusercontent.com/u/10281003?v=3","gravatar_id":"","url":"https://api.github.com/users/mbauer553","html_url":"https://github.com/mbauer553","followers_url":"https://api.github.com/users/mbauer553/followers","following_url":"https://api.github.com/users/mbauer553/following{/other_user}","gists_url":"https://api.github.com/users/mbauer553/gists{/gist_id}","starred_url":"https://api.github.com/users/mbauer553/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbauer553/subscriptions","organizations_url":"https://api.github.com/users/mbauer553/orgs","repos_url":"https://api.github.com/users/mbauer553/repos","events_url":"https://api.github.com/users/mbauer553/events{/privacy}","received_events_url":"https://api.github.com/users/mbauer553/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-01-09T17:30:43Z","updated_at":"2015-01-09T17:30:43Z","closed_at":null,"body":"In rhosimulator, every time a file is required, I believe it is reloaded.  I originally assumed this was intended as a feature so that you could edit your code live, and see the changes,  but per a discussion with Jon Tara, he recommended I submit an issue.  Our discussion can be found here: https://developer.motorolasolutions.com/thread/29908.  \r\n\r\nBelow is the support for my thinking on the requiring of files.  \r\nSimple test class\r\n================\r\n![test_class_screen](https://cloud.githubusercontent.com/assets/10281003/5684041/a757ead2-97f2-11e4-940f-992c4316e7fd.jpg)\r\nController usage\r\n================\r\n![controller_screen](https://cloud.githubusercontent.com/assets/10281003/5684059/b96083b0-97f2-11e4-9728-abad2c6bafb4.jpg)\r\n\r\nGiven the above code, I am expecting to see 'test' for @test_var the first time, and 'Test round 2' upon refresh.  This however is not the case in rhosimulator.  The value for @test_var is 'test' every time.  When performed outside of rhosimulator I receive the results I expect. \r\nRhosimulator test\r\n=================\r\n![test_rhosim](https://cloud.githubusercontent.com/assets/10281003/5684070/cdca03ee-97f2-11e4-9493-187bccda4243.jpg)\r\n\r\nWin32 test\r\n=================\r\n![test_win32](https://cloud.githubusercontent.com/assets/10281003/5684078/de257214-97f2-11e4-80fa-4d76ecec1028.jpg)\r\n\r\nThe work around we have been using is to require anything with a class variable in application.rb, which eliminates the issue, but it would be nice if we could require in the files that are going to utilize the classes. \r\n\r\nThanks,\r\n\r\nMAB"}}