app/controllers/opal_spec_controller.rb in opal-rails-0.1.0 vs app/controllers/opal_spec_controller.rb in opal-rails-0.2.0
- old
+ new
@@ -1,8 +1,13 @@
class OpalSpecController < ActionController::Base
def run
- files = (params[:files] || 'spec').split(':')
- render :nothing => true, :layout => 'opal_spec', :locals => {
- :spec_files => files
- }
end
+
+
+ private
+
+ def spec_files
+ @spec_files ||= (params[:files] || 'spec').split(':')
+ end
+
+ helper_method :spec_files
end