Sha256: e73174f34e5b6773b191e2b2f5620c4fbe475915fbfe2b6e8048d49b11860f58
Contents?: true
Size: 897 Bytes
Versions: 9
Compression:
Stored size: 897 Bytes
Contents
module Faalis module Generators module Concerns # This **Concern** looks for `raw_path` and `path` in scaffold # json file which both of them are optional. # Using `raw_path` you can override the full path of generate file. # and with `path` you can override the directory name inside # `app/assets/javascripts`. module Angular private # return the relative path to place where scaffold shoud be created. def angularjs_app_path if not resource_data["raw_path"].blank? resource_data["raw_path"] elsif not resource_data["path"].blank? "app/assets/javascripts/#{resource_data['path']}/" else path = Faalis::Engine.dashboard_js_manifest.split("/")[0..-2].join("/") "app/assets/javascripts/#{path}/" end end end end end end
Version data entries
9 entries across 9 versions & 1 rubygems