Sha256: 8ee87e3c024c1bd832e639d41bc7df4c0e6b8558d1d5e77960af903a7f93eba8
Contents?: true
Size: 457 Bytes
Versions: 33
Compression:
Stored size: 457 Bytes
Contents
require 'action_view' module ErpApp module ApplicationResourceLoader class BaseLoader protected def sort_files(files) files.collect do |file| value = file.split('.')[1] (value != 'js' ? {:file => file, :value => value.to_i} : {:file => file, :value => 0}) end.sort_by{|item| [item[:value]]}.collect{|item| item[:file]} end end#BaseLoader end#ApplicationResourceLoader end#ErpApp
Version data entries
33 entries across 33 versions & 1 rubygems