Sha256: ae271d942712a77aadeb7c44862dd9329906d0b1ab8ac2ee9d5f091ebf8ce565
Contents?: true
Size: 514 Bytes
Versions: 3
Compression:
Stored size: 514 Bytes
Contents
require 'rails/generators/named_base' module Rspec module Generators class Base < ::Rails::Generators::NamedBase def self.source_root @_rspec_source_root ||= File.expand_path(File.join(File.dirname(__FILE__), 'rspec', generator_name, 'templates')) end end end end module Rails module Generators class GeneratedAttribute def input_type @input_type ||= if type == :text "textarea" else "input" end end end end end
Version data entries
3 entries across 3 versions & 2 rubygems
Version | Path |
---|---|
rspec-rails-2.11.4 | lib/generators/rspec.rb |
gem_repackager-0.1.0 | support/gems/rspec-rails-2.11.0/lib/generators/rspec.rb |
rspec-rails-2.11.0 | lib/generators/rspec.rb |