Module: Rails3::Assist::Artifact::View::SingleArg::HashArg
- Extended by:
- FileName::Helper
- Defined in:
- lib/rails3_artifactor/artifact/file_name/view.rb
Class Method Summary collapse
-
.get_view_args(one_hash) ⇒ Object
view_file(:person => :show).should == /views/person/show.html.erb/.
Methods included from FileName::Helper
default_template_lang, filename_name, filename_type, get_type, get_view_type
Class Method Details
.get_view_args(one_hash) ⇒ Object
view_file(:person => :show).should == /views/person/show.html.erb/
76 77 78 79 80 81 82 |
# File 'lib/rails3_artifactor/artifact/file_name/view.rb', line 76 def self.get_view_args one_hash folder = one_hash.keys.first.to_s filename = one_hash.values.first.to_s action = filename_name filename type = get_view_type(filename_type filename) [folder, action, type] end |