Sha256: 0600fb03e07819182f84e21ac38a31d29dfe241276e2c12aa29f0db8c2cf08ff

Contents?: true

Size: 233 Bytes

Versions: 8

Compression:

Stored size: 233 Bytes

Contents

class ApplicationController < ActionController::Base
  protect_from_forgery
  
  before_filter :find_organism
  
  protected
  
  def find_organism
     @organism = Organism.find_or_create_by_title(title:'Mon association')
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
adherent-0.1.10 spec/dummy/app/controllers/application_controller.rb
adherent-0.1.9 spec/dummy/app/controllers/application_controller.rb
adherent-0.1.7 test/dummy/app/controllers/application_controller.rb
adherent-0.1.6 test/dummy/app/controllers/application_controller.rb
adherent-0.1.5 test/dummy/app/controllers/application_controller.rb
adherent-0.1.4 test/dummy/app/controllers/application_controller.rb
adherent-0.1.3 test/dummy/app/controllers/application_controller.rb
adherent-0.1.2 test/dummy/app/controllers/application_controller.rb