Sha256: 3f49feed4d46f52b85ad44b6918d61059cd2e2368a5f4759bcb0a9ac88eb90ca
Contents?: true
Size: 695 Bytes
Versions: 1
Compression:
Stored size: 695 Bytes
Contents
require 'rails/generators/named_base' require 'rspec/rails/rails_version' 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 if RSpec::Rails.rails_version_satisfied_by?('< 3.1') def module_namespacing yield if block_given? end 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rspec-rails-2.13.1 | lib/generators/rspec.rb |