Class: Faalis::Generators::ResourcesGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/faalis/resources_generator.rb

Overview

Generate a resource on dashboard

Instance Method Summary collapse

Instance Method Details

#generate_resourcesObject



10
11
12
13
14
# File 'lib/generators/faalis/resources_generator.rb', line 10

def generate_resources
  resources.each do |resource|
    generate 'faalis:resource', resource
  end
end