Sha256: 10cf4d4121a83288d50e5a6f324d7d54f7ba9a5ba88283c441867384cfa2c26f

Contents?: true

Size: 259 Bytes

Versions: 6

Compression:

Stored size: 259 Bytes

Contents

class Admin::UsersController < AdminController

  private
    def set_defaults
      super
      @model = User
      @columns = ['email']
    end

    def create_params
      params.require(:user).permit(:email, :password, :password_confirmation)
    end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
cambium-0.3.0 lib/generators/cambium/templates/app/controllers/admin/users_controller.rb
cambium-0.2.2 lib/generators/cambium/templates/app/controllers/admin/users_controller.rb
cambium-0.2.1 lib/generators/cambium/templates/app/controllers/admin/users_controller.rb
cambium-0.2.0 lib/generators/cambium/templates/app/controllers/admin/users_controller.rb
cambium-0.0.2 lib/generators/cambium/templates/app/controllers/admin/users_controller.rb
cambium-0.0.1 lib/generators/cambium/templates/app/controllers/admin/users_controller.rb