Rewrited gem asset logic