Sha256: 62db3d1415e4cea0c41d761e01ea68001f8011727599ccb3e6be779adc573e5b
Contents?: true
Size: 807 Bytes
Versions: 1
Compression:
Stored size: 807 Bytes
Contents
require 'sugar-high/file' require_all File.dirname(__FILE__) + '/crud' module RailsAssist::Artifact (RailsAssist.artifacts - [:model]).each do |name| class_eval %{ module #{name.to_s.camelize} def new_#{name}_content name, content=nil, options = {}, &block options = options.merge(:type => :#{name}, :content => content) new_artifact_content name, options, &block end end } end RailsAssist.artifacts.each do |name| plural_name = name.to_s.pluralize class_eval %{ module #{name.to_s.camelize} include RailsAssist::BaseHelper def self.included base base.class_eval do include RailsAssist::Artifact::CRUD end end multi_aliases_for :#{name} end } end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rails_artifactor-0.5.1 | lib/rails_artifactor/artifact/crud.rb |