Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: fb2f6f18d3
Fetching contributors…

Cannot retrieve contributors at this time

26 lines (23 sloc) 0.514 kB
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
Jump to Line
Something went wrong with that request. Please try again.