Sha256: 4cac10babf3604a36fbc65b808f5703f7843c3c54a9bb3565e0e6bdad0987abd

Contents?: true

Size: 333 Bytes

Versions: 8

Compression:

Stored size: 333 Bytes

Contents

class LinksController < ApplicationController
  include SocialStream::Controllers::Objects

  def create
    super do |format|
      format.json { render :json => resource }
      format.js { render }
      format.all {redirect_to link_path(resource) || home_path}
    end
  end

  private

  def allowed_params
    [:url]
  end
end

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
social_stream-1.1.4 linkser/app/controllers/links_controller.rb
social_stream-1.1.3 linkser/app/controllers/links_controller.rb
social_stream-1.1.2 linkser/app/controllers/links_controller.rb
social_stream-1.1.1 linkser/app/controllers/links_controller.rb
social_stream-1.1.0 linkser/app/controllers/links_controller.rb
social_stream-linkser-1.1.0 app/controllers/links_controller.rb
social_stream-1.0.1 linkser/app/controllers/links_controller.rb
social_stream-linkser-1.0.0 app/controllers/links_controller.rb