Sha256: 0fa4a1d45bb3c9db89229b32aa517f785b2ac0f49a9ab0e351de7707aa4e148c

Contents?: true

Size: 502 Bytes

Versions: 1

Compression:

Stored size: 502 Bytes

Contents

module Forcast
	module Application
		module Utils

		private

			def limit_query

				@limit = nil		
				@limit = params[:limit] if params[:limit].present?
				@limit_nested = nil
				@limit_nested = params[:limit_nested] if params[:limit_nested].present?
			end

			def params_present? (param)
				true if params[param].present? 
			end

			def abstract_controller (model)

	        	controller_path.tableize.gsub!(controller_name, model+ "s_controller").classify.constantize 

			end


		end
	end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
forcast-0.0.110 lib/forcast/controllers/application/utils.rb