Skip to content

Commit

Permalink
Steps to AlternateValue JavaScript links.
Browse files Browse the repository at this point in the history
  • Loading branch information
TuckerJD committed Oct 20, 2014
1 parent 72a4ca4 commit b558d4d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions app/controllers/alternate_values_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@ def new

def edit
@alternate_value = AlternateValue.find_by_id(params[:id]).becomes(AlternateValue)
# alternate_value: {alternate_object_type: object.class.base_class.name,
# alternate_object_id: object.id,
# alternate_object_attribute: alternate_value.alternate_object_attribute}
end

# POST /alternate_values
Expand Down
2 changes: 1 addition & 1 deletion app/models/serial.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class Serial < ActiveRecord::Base
has_many :immediately_succeeding_serials, through: :preceding_serial_chronologies, source: :succeeding_serial # class is 'Serial'
# .to_a will return an array of serials - single succeeding chronology will be multiple serials if there is a split

accepts_nested_attributes_for :alternate_values
accepts_nested_attributes_for :alternate_values, :reject_if => lambda { |av| av[:value].blank? } #, :allow_destroy => true

# TODO handle translations (which are simultaneous)

Expand Down

0 comments on commit b558d4d

Please sign in to comment.