Sha256: 688cec6c664bdaa523a7c08172550b54f3993f01622de2238b82bc4279c61977

Contents?: true

Size: 452 Bytes

Versions: 24

Compression:

Stored size: 452 Bytes

Contents

# encoding : utf-8
class RegistrationsController < Devise::RegistrationsController
  def create
    super
    if resource.id.nil? then
      self.instance_variable_set(:@_response_body, nil)
      @opened_modal = "#modal-register-form"
      if params[:path_to_redirect] then
        redirect_to params[:path_to_redirect]
      else
        render "beautiful/dashboard", :layout => "beautiful_layout", :location => root_path
      end
    end
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
beautiful_scaffold-2.0.3 lib/generators/templates/app/controllers/registrations_controller.rb
beautiful_scaffold-2.0.2 lib/generators/templates/app/controllers/registrations_controller.rb
beautiful_scaffold-2.0.1 lib/generators/templates/app/controllers/registrations_controller.rb
beautiful_scaffold-2.0.0 lib/generators/templates/app/controllers/registrations_controller.rb
beautiful_scaffold-2.0.0.pre lib/generators/templates/app/controllers/registrations_controller.rb
beautiful_scaffold-1.0.2 lib/generators/templates/app/controllers/registrations_controller.rb
beautiful_scaffold-1.0.1 lib/generators/templates/app/controllers/registrations_controller.rb
beautiful_scaffold-1.0.0.pre lib/generators/templates/app/controllers/registrations_controller.rb
beautiful_scaffold-0.3.6 lib/generators/templates/app/controllers/registrations_controller.rb
beautiful_scaffold-0.3.5 lib/generators/templates/app/controllers/registrations_controller.rb
beautiful_scaffold-0.3.4 lib/generators/templates/app/controllers/registrations_controller.rb
beautiful_scaffold-0.3.3 lib/generators/templates/app/controllers/registrations_controller.rb
beautiful_scaffold-0.3.2 lib/generators/templates/app/controllers/registrations_controller.rb
beautiful_scaffold-0.3.1 lib/generators/templates/app/controllers/registrations_controller.rb
beautiful_scaffold-0.3.0.rc6 lib/generators/templates/app/controllers/registrations_controller.rb
beautiful_scaffold-0.3.0.rc5 lib/generators/templates/app/controllers/registrations_controller.rb
beautiful_scaffold-0.3.0.rc4 lib/generators/templates/app/controllers/registrations_controller.rb
beautiful_scaffold-0.3.0.rc3 lib/generators/templates/app/controllers/registrations_controller.rb
beautiful_scaffold-0.3.0.rc2 lib/generators/templates/app/controllers/registrations_controller.rb
beautiful_scaffold-0.3.0.rc1 lib/generators/templates/app/controllers/registrations_controller.rb