Sha256: 9d90cd0a6d3ff6e2c53a295f3625360944c27c8ed57ec31d49c728777a0604c5

Contents?: true

Size: 464 Bytes

Versions: 1

Compression:

Stored size: 464 Bytes

Contents

class AdminData::FeedController < AdminData::BaseController

  unloadable

  before_filter :ensure_is_allowed_to_view_feed

  def index
    render :text => "Usage: http://localhost:3000/admin_data/feed/<model name>" and return if params[:klasss].blank?

    begin
      @klass = AdminData::Util.camelize_constantize(params[:klasss])
    rescue NameError => e
      render :text => "No constant was found with name #{params[:klasss]}" and return
    end
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
admin_data-1.0.3 app/controllers/admin_data/feed_controller.rb