Skip to content

Instantly share code, notes, and snippets.

@jagmitg
Created March 26, 2012 15:16
Show Gist options
  • Save jagmitg/2205809 to your computer and use it in GitHub Desktop.
Save jagmitg/2205809 to your computer and use it in GitHub Desktop.
def self.import_location(cinema_data)
@location = Location.find_or_create_by_name(cinema_data[:name])
@location.update_attribute(:url => cinema_data[:addressing])
cinema_data.each do |cinema_data|
import_location(cinema_data)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment