lib/padrino-assets.rb
def load_paths
        @_load_paths ||= ['app/assets/**', 'lib/assets/**'].map do |directory|
          Dir[Padrino.root(directory)]
        end.flatten
      end
###
# Returns a list of paths Sprockets will use in order to find assets used by the project
#
# @return [Array]
#   List of assets paths
#
# @example
#   Padrino::Assets.load_paths << Dir[Padrino.root('vendor', '**', 'assets')]
#
# @deprecated
#   Use Sprockets.append_path and Sprockets.prepend_path instead
#
# @since 0.1.0
# @api public
Returns a list of paths Sprockets will use in order to find assets used by the project
Returns a list of paths Sprockets will use in order to find assets used by the project
def load_paths
        @_load_paths ||= ['app/assets/**', 'lib/assets/**'].map do |directory|
          Dir[Padrino.root(directory)]
        end.flatten
      end
def load_paths @_load_paths ||= [ 'app/assets/**' , 'lib/assets/**' ] . map do | directory | Dir [ Padrino . root ( directory ) ] end . flatten end
Returns a list of paths Sprockets will use in order to find assets used by the project
Returns a list of paths Sprockets will use in order to find assets used by the project
List of assets paths
List of assets paths
Array
example
:Assets.load_paths << Dir[Padrino.root('vendor', '**', 'assets')]
: Assets . load_paths << Dir [ Padrino . root ( ' vendor ' ' ** ' ' assets ' ) ]
deprecated
Use Sprockets.append_path and Sprockets.prepend_path instead
Use Sprockets . append_path and Sprockets . prepend_path instead
since
None
api
None