Sha256: f53f687df5ab9c3ea6d84a019e749b48d2b6c1a4fd7cdcb9e8bbd4cbd72b8b96
Contents?: true
Size: 642 Bytes
Versions: 12
Compression:
Stored size: 642 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::STRING < '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
12 entries across 12 versions & 1 rubygems