Sha256: f8babb7ee17029dcc59c7368f23fcbd76b8d1faa65fd03aea6b5424d73627bcc
Contents?: true
Size: 619 Bytes
Versions: 3
Compression:
Stored size: 619 Bytes
Contents
# just a gem hook Motion::Project::App.instance_eval do alias :setup_before_under_os :setup def setup(*args, &block) config.setup_blocks << proc do |app| Dir.glob(File.dirname(__FILE__) + '/**/*.rb').reverse.each do |file| app.files.insert(0, file) if file != __FILE__ end app.resources_dirs << File.dirname(__FILE__) + "/assets" app.resources_dirs << "app/styles/" if File.exists?("app/styles") app.resources_dirs << "app/layouts/" if File.exists?("app/layouts") app.fonts << "fontawesome-webfont.ttf" end setup_before_under_os *args, &block end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
under-os-1.2.1 | lib/under-os.rb |
under-os-1.2.0 | lib/under-os.rb |
under-os-1.1.0 | lib/under-os.rb |