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

Version Path
erp_app-4.0.0 lib/erp_app/application_resource_loader/base_loader.rb
erp_app-3.1.16 lib/erp_app/application_resource_loader/base_loader.rb
erp_app-3.1.15 lib/erp_app/application_resource_loader/base_loader.rb
erp_app-3.1.14 lib/erp_app/application_resource_loader/base_loader.rb
erp_app-3.1.13 lib/erp_app/application_resource_loader/base_loader.rb
erp_app-3.1.12 lib/erp_app/application_resource_loader/base_loader.rb
erp_app-3.1.11 lib/erp_app/application_resource_loader/base_loader.rb
erp_app-3.1.10 lib/erp_app/application_resource_loader/base_loader.rb
erp_app-3.1.9 lib/erp_app/application_resource_loader/base_loader.rb
erp_app-3.1.8 lib/erp_app/application_resource_loader/base_loader.rb
erp_app-3.1.7 lib/erp_app/application_resource_loader/base_loader.rb
erp_app-3.1.6 lib/erp_app/application_resource_loader/base_loader.rb
erp_app-3.1.5 lib/erp_app/application_resource_loader/base_loader.rb
erp_app-3.1.4 lib/erp_app/application_resource_loader/base_loader.rb
erp_app-3.1.3 lib/erp_app/application_resource_loader/base_loader.rb
erp_app-3.1.2 lib/erp_app/application_resource_loader/base_loader.rb
erp_app-3.0.16 lib/erp_app/application_resource_loader/base_loader.rb
erp_app-3.0.15 lib/erp_app/application_resource_loader/base_loader.rb
erp_app-3.1.1 lib/erp_app/application_resource_loader/base_loader.rb
erp_app-3.1.0 lib/erp_app/application_resource_loader/base_loader.rb