Sha256: 79e3f49f003fdd9f9636c6b4518f63f9ebde0171e0ffefa5dc7e715ab96eec56
Contents?: true
Size: 512 Bytes
Versions: 22
Compression:
Stored size: 512 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
22 entries across 17 versions & 3 rubygems
Version | Path |
---|---|
rspec-rails-2.8.0.rc1 | lib/generators/rspec.rb |
rspec-rails-2.7.0 | lib/generators/rspec.rb |