Sha256: f918fe0de8086fa43fb1e044c6b6e35da95c93a2816abdfb87e1a38c92738648
Contents?: true
Size: 633 Bytes
Versions: 5
Compression:
Stored size: 633 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 if ::Rails.version < '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
5 entries across 5 versions & 2 rubygems