instance method
set_default_accessors!
Ruby on Rails 3.1.12
Since v3.1.12 Last seen in v3.2.22.5Available in: v3.1.12 v3.2.22.5
Signature
set_default_accessors!()
No documentation comment.
Source
# File railties/lib/rails/generators/app_base.rb, line 114
def set_default_accessors!
self.rails_template = case options[:template]
when /^https?:\/\//
options[:template]
when String
File.expand_path(options[:template], Dir.pwd)
else
options[:template]
end
end
Defined in railties/lib/rails/generators/app_base.rb line 114
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Rails::Generators::AppBase