Module: Rails3::Assist::Artifact::Files::Helper
- Defined in:
- lib/rails3_assist/artifact/files.rb
Class Method Summary collapse
Class Method Details
.get_view_args(args) ⇒ Object
49 50 51 52 53 54 55 56 57 58 59 60 |
# File 'lib/rails3_assist/artifact/files.rb', line 49 def self.get_view_args args args = args.flatten first_arg = args.first case first_arg when Regexp expr = first_arg when String, Symbol _model = first_arg end expr = args[1] if args.size > 1 && args[1].kind_of?(Regexp) [expr, _model] end |