Methods

Files

Class Index [+]

Quicksearch

UbiquoDesign::Extensions::RailsGenerator::Create

Public Instance Methods

ubiquo_widget(name) click to toggle source

Modify design_structure.rb and include the new widget

    # File vendor/plugins/ubiquo_design/lib/ubiquo_design/extensions/rails_generator.rb, line 11
11:         def ubiquo_widget(name)
12:           logger.widget "#{name}"
13:           unless options[:pretend]
14:             gsub_file 'config/initializers/design_structure.rb', /(^end$)/ do |match|
15:               "  widget :#{name}\n#{match}"
16:             end
17:           end
18:         end

Disabled; run with $DEBUG to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.