Sha256: acce46b9a14ab90f5c5a672b4b819842275f75b6cf946e3065eca17a608b3cdd
Contents?: true
Size: 847 Bytes
Versions: 6
Compression:
Stored size: 847 Bytes
Contents
module Faalis module Generators module Concerns # This **Concern** adds support of dependencies to scaffold using # `deps` key in json file. You can provide a list of scaffold dependencies # which should mention as dependecy of **Angularjs** module of scaffold. # Example: # #```javascript # .... # "deps": [ # "module1", # "module2" # ], # ... #``` module Dependency def self.included(base) # Dependencies of Angularjs module, comma separated #base.class_option :deps, :type => :string, :default => "", :desc => "Dependencies of Angularjs module, comma separated" end # Return a list of dependencies. def deps resource_data[:deps] end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems