Benign gem 663,217 installs Download

acts_as_singleton 0.0.8

“It just makes sense to store mutable, site-wide, admin-level settings in the database. Right? A key-value table may be more flexible, but m…”

Ruby class_eval callRuby instance_eval call
SHA-256068d74e6163e8305ddcc98ec142f859e8c49240a5379161c87d27c1352631450
MaleculeH(Po)

Evidence

Ruby class_eval call acts_as_singleton.rb · lines 25–32
25:69… rs|mini|max|new|d_sco|^upd/
26
27 def self.included(model)
28 model.class_eval do
29 private_class_method *methods.grep(PRIVATE) # Deny existent others.
30
31 class << self
32 def exist …
Ruby instance_eval call acts_as_singleton_test.rb · lines 44–56
⋯5 lines
49 teardown_db
50
51 HomepageSettings.instance_eval do
52 remove_instance_variable :@instance if defined? @instance
53 end
54 end
55
56 test "should be provocativ …

No evidence locations were recorded for this file. Raw result

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.