Sha256: 66dd39785762327ca712429c6024be854f5f42ba39e4ca3cf59854c782082aaf
Contents?: true
Size: 352 Bytes
Versions: 2
Compression:
Stored size: 352 Bytes
Contents
class Admin::SettingsController < Admin::AdminController before_filter :get_setting, :only => [:show] def show end def get_setting #results = CARTODB.query("SELECT * FROM features WHERE cartodb_id = #{params[:id]}") if params[:id] #@feature = results.rows.first if results && results.rows.present? end private :get_setting end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
cartoset-0.0.2 | app/controllers/admin/settings_controller.rb |
cartoset-0.0.1 | app/controllers/admin/settings_controller.rb |