lib/enju_subject.rb in enju_subject-0.1.1 vs lib/enju_subject.rb in enju_subject-0.2.0.beta.1

- old
+ new

@@ -1,33 +1,4 @@ require "enju_subject/engine" -require "enju_subject/manifestation" module EnjuSubject - def self.included(base) - base.extend(ClassMethods) - end - - module ClassMethods - def enju_subject - include EnjuSubject::InstanceMethods - end - end - - module InstanceMethods - private - - def get_subject_heading_type - @subject_heading_type = SubjectHeadingType.find(params[:subject_heading_type_id]) if params[:subject_heading_type_id] - end - - def get_subject - @subject = Subject.find(params[:subject_id]) if params[:subject_id] - end - - def get_classification - @classification = Classification.find(params[:classification_id]) if params[:classification_id] - end - end end - -ActionController::Base.send :include, EnjuSubject -ActiveRecord::Base.send :include, EnjuSubject::EnjuManifestation