Skip to content

Instantly share code, notes, and snippets.

@arjan0307
arjan0307 / controller.rb
Last active December 13, 2015 19:08
Controller extension
<% if namespaced? -%>
require_dependency "<%= namespaced_path %>/application_controller"
<% end -%>
<% module_namespacing do -%>
class <%= class_name %>Controller < CustomController
<% actions.each do |action| -%>
def <%= action %>
end
<%= "\n" unless action == actions.last -%>
/vendor/ruby-2.1.2/lib/ruby/2.1.0/uri/common.rb:125 in "==="
/vendor/ruby-2.1.2/lib/ruby/2.1.0/uri/common.rb:125 in "split"
/vendor/ruby-2.1.2/lib/ruby/2.1.0/uri/common.rb:211 in "parse"
/vendor/ruby-2.1.2/lib/ruby/2.1.0/uri/common.rb:747 in "parse"
/vendor/bundle/ruby/2.1.0/gems/carrierwave_direct-0.0.14/lib/carrierwave_direct/uploader.rb:64 in "key"
/vendor/bundle/ruby/2.1.0/gems/carrierwave_direct-0.0.14/lib/carrierwave_direct/uploader.rb:81 in "has_key?"
/vendor/bundle/ruby/2.1.0/gems/carrierwave_direct-0.0.14/lib/carrierwave_direct/mount.rb:33 in "has_upload_upload?"
/app/models/document.rb:27 in "set_name"
/vendor/bundle/ruby/2.1.0/gems/activesupport-4.1.7.1/lib/active_support/callbacks.rb:424 in "block in make_lambda"
/vendor/bundle/ruby/2.1.0/gems/activesupport-4.1.7.1/lib/active_support/callbacks.rb:160 in "call"
class window.KittenManager
actions:
hunting:
state: false
time_interval: null
parchmenting:
state: false
time_interval: null
manuscripting:
state: false
@arjan0307
arjan0307 / .profile
Created May 4, 2017 09:42
Makara on heroku
export MASTER_URL=$DATABASE_URL
window.CO2M ||= {}
window.CO2M.UTIL =
_defineProperty: (obj, key, value) ->
if key of obj
Object.defineProperty obj, key,
value: value
enumerable: true
configurable: true
writable: true
else

Keybase proof

I hereby claim:

  • I am arjan0307 on github.
  • I am arjan0307 (https://keybase.io/arjan0307) on keybase.
  • I have a public key ASC0c_bAcqnh3EKwXUxMfT7a8n5WLVt2j7Bi7aaGzZ5tPgo

To claim this, I am signing this object: