Skip to content

Instantly share code, notes, and snippets.

View vijaydev's full-sized avatar

Vijay Dev vijaydev

  • India
  • 13:53 (UTC +05:30)
View GitHub Profile
class ActionDispatch::Routing::Mapper
def draw(routes_name)
instance_eval(File.read(Rails.root.join("config/routes/#{routes_name}.rb")))
end
end
BCX::Application.routes.draw do
draw :api
draw :account
draw :session
Array.prototype.forEach.call($$("#NA_block img"), function(el) {
if (el.attributes.src.value.indexOf("status0") !== -1)
el.parentNode.parentNode.style.display = 'none';
});