Sha256: a13ab28647290082d8d1e438598fc9a7b8de50f83846c083030adcf7a8b8f6b1
Contents?: true
Size: 910 Bytes
Versions: 23
Compression:
Stored size: 910 Bytes
Contents
require 'rails/generators/named_base' require 'rspec/rails/feature_check' # @private # Weirdly named generators namespace (should be `RSpec`) for compatability with # rails loading. module Rspec # @private module Generators # @private class Base < ::Rails::Generators::NamedBase include RSpec::Rails::FeatureCheck def self.source_root(path = nil) if path @_rspec_source_root = path else @_rspec_source_root ||= File.expand_path(File.join(File.dirname(__FILE__), 'rspec', generator_name, 'templates')) end end end end end # @private module Rails module Generators # @private class GeneratedAttribute def input_type @input_type ||= if type == :text "textarea" else "input" end end end end end
Version data entries
23 entries across 21 versions & 4 rubygems